XWIKI-7936: When you import a page, that have no attachment and overwrit...

...e an existing page containing attachments, some errors appear with them.

* It happens when you import the document as a new version.
* We remove from the database all attachments that are not in the new version of the document.