Revert "XWIKI-11230: hasAccessLevel fails for guest"

This reverts commit f9409ce32183a7b4feef659e9e49537a3511b96d.