Fix littering with empty Occurrences when using deleteDocs