Thank you for the screenshots. In your case, there is a simple solution. In the "apply to each" add a condition. Check if the date field is equal to null (insert null as a function, not text). If it is Null, insert your error handling, if it is not, then insert your compose action.
If you need any more assistance, don't hesitate to ask.
If my answer helped you, please consider accepting it as a solution 🙂