Fixes #6236: No JS scripts should be registered when `yii\widgets\ActiveForm::enableClientScript` is false