fix bug with docs with bad dates not being indexed
Merge pull request #2279 from dimagi/bad-dates

Bad dates