Fix failure when setting date as null

Otherwise, Timepicker is breaking Datepicker compatibility by not
accepting null value.
Merge pull request #669 from gentooboontoo/fix-set-null-date

Fix failure when setting date as null