Issue #1604 RidBags are removed when documents are deleted.