Revert "XWIKI-11230: hasAccessLevel fails for guest"

This reverts commit 6ed38b47741a3cf4168c777b6c4f6f8da60f52d2.