Handle nulls in date fields