Another Bug fix with range picker when next date is before previous date

- Fixes also the case where end date is selected before the start date