XWIKI-10021: No public access to main wiki webhome when public access is not allowed on a subwiki.

* replace $xwiki.checkAccess() by $xwiki.hasAccess()