Fix failure when setting date as null

Otherwise, Timepicker is breaking Datepicker compatibility by not accepting null value.