fixing issue where end date before start date of range

With single date picker, if you pick today then go back to another day, then change the hour few times.
you will notice the apply button gets disabled because the end of the range becomes before the first date.

Tested with minDate set to moment()