XWIKI-9421: Attachment version is incremented when a document is restored from recycle bin
* Better fix: increment attachment version only if the owner document is not new.