XWIKI-8839: XWikiDocument.getXObject(EntityReference classReference, int nb) ignores the object number and always returns the first object
(cherry picked from commit 112162a0a14b1f0ff76db5408eb83823bd58947c)