fix(timepicker): properly handle null values when using a string timeType (fixes #597)