delete document by term if tryDeleteDocument fails

... otherwise old versions of documents pile up in the index