Fixed an issue where invalid search indexes were being used when no date range was specified.