XWIKI-8781: Deleting the last version of a document revert the document, but the revisions are mixed