XWIKI-8952: XWiki#getWikiOwner can potentially return wrong value for main wiki