fix(ngAnimate): Fix animation event handling in browsers and tests.