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

Closes #5106