Fixes #5646: Call `yii\base\ErrorHandler::unregister()` instead of `restore_*_handlers` directly