XWIKI-8951: Support null user and null entity in the new security authorization module

 - further fix log and exception messages