Fix for issue when removing a doc that used to belong in a filter of a filter