Correction in yii.activeForm.js

Correction of beforeValidate and afterValidate in yii.activeForm.js
Description for #3139