XWIKI-9826: Fix a regression in hasAccessLevel() check