XWIKI-9374: Align the way to remove attachment from a document with xobjects