XWIKI-8951: Support null user and null entity in the new security authorization module
* simplify existing code