XWIKI-10235: NPE during entity reference resolving for class property and block types