XWIKI-9190: Document reference is not properly resolved in the new security system bridge (XWikiCachingRightService)
(cherry picked from commit 29c43f6ae3a3cc42939b83ccb085977099cb3af7)