fix(datepicker): properly handle null values (fixes #371)
fix(timepicker): properly handle null and invalid values