Fixed BC issue with afterValidate callback.