Inverse relational cache not updated after entry is removed
If entry A refers to entry B in its metadata, entry B will have information about this in its inverse-relation cache.
Now, if you remove A the inverse-relation cache of B must be updated to reflect that the relation is now gone.
This does not seem to happen.
An easy way to test is to do a comment on something, then find the comment in the unlisted folder and remove it. Now, the commented entry will still show that it has a comment.