fix($animate): ensure blocked keyframe animations are unblocked before the DOM operation

Closes #5106
Merge branch 'master' of https://github.com/angular/angular.js
componentizd!