KS-4697: [Wiki] Cannot display wiki tree when special permissions are ap...

...plied on pages.

Fix description:
Problem: Wrong get permission while assessing the selected page at the first time
Fix description: InitpermissionforWikihome to fix this problem