Fixes #5480: Added defensive code to `yii\web\User::getIdentity()` to avoid potential infinite recursion