XWIKI-11226: XWikiDocument context document switch shoud take into account secure doc (sdoc)