XWIKI-7947: Attaching a file after a rollback restores previous attachments.

* Fix auto-cleaned import.