XWIKI-9075: The last version of a document doesn't disappear from the list when you delete it if the document has attachments