XWIKI-11207: The REST API allows to list wikis even when the wiki is protected
* Fix error during cherry-pick from the master branch and use API that exist in the 5.4.x branch