Fix: handle type errors in validate_format_datetime.