Add null check
Add null check

If ngModel is null, that's because the user cleared the date field or entered some invalid text

necroscope/angular-js-bootstrap-datetimepicker,forestjohnsonilm/angular-js-bootstrap-datetimepicker,necroscope/angular-js-bootstrap-datetimepicker,zhaber/angular-js-bootstrap-datetimepicker,zhaber/datetimepicker,forestjohnsonilm/angular-js-bootstrap-datetimepicker,transGLUKator/angular-js-bootstrap-datetimepicker,transGLUKator/angular-js-bootstrap-datetimepicker,zhaber/datetimepicker,xdimedrolx/angular-js-bootstrap-datetimepicker,xdimedrolx/angular-js-bootstrap-datetimepicker,zhaber/angular-js-bootstrap-datetimepicker