Fixed exception thrown by onTimeChange

After disabling a timepicker an exception is thrown, if you close the now timepicker-less datepicker.