XWIKI-10177: Possible nullpoiter exception when acessing subwiki before main wiki