XWIKI-11236: Bad handling of sdoc in DefaultContextualAuthorizationManager
* a bit more ceonsistent with the old API logic