Better handling of empty date values.