Convert empty strings to null for date fields