CYKLO-977: when no acceptedSites are specified, pass idSet on,
unmodified.
CYKLO-976: fixed lookup of lowest date in the specified index field.
CYKLO-976: make optimization resilient against malformed dates in the
index.