AUI-1177 Fixing issue when selectDates is called with a single date