handle the case of an empty index
handle the case of an empty index

if the index is empty we won't get a start and end date hence we just
use years 01 and 9000; gets fixed on next run anyway.

MLR-au/esrc-indexer