mods indexing: refactor date handling some; check each date in has_invalid_date(), instead of setting a flag while doing the indexing