XWIKI-8950: NPE in hasAdminRights of XWikiCachingRightService when context.getDoc() is null