Сheck if user is authenticated in RBAC UserGroupRule.

Need to check if user is authenticated before call `Yii::$app->user->identity->group`.