XWIKI-10960: $xwiki.checkAccess($someDoc, 'programming') always fails
Fixed

(cherry picked from commit 1a6e0625e8ffc400bd1408a344dfefdc08d7c61e)