NXP-14009 fix indexing for documents put in trash