Fix error: 'Argument 1 passed to XenForo_Permission::hasContentPermission() must be of the type array, null given'.
Note: in addon the considerable part of a code which is responsible for check of permissions was rewritten. It was necessary to avoid different problems when for any reasons of permission weren't set, and also in case of interaction with other addons.