Fixes #3772: Behaviors adding validation rules do not work as expected