fix(timepicker): properly handle undefined values