XWIKI-9907: NullPointerException on $services.wiki.getById() when getXObjects() returns a list with a null element.