fix($animate): prevent leaving animate classes after animation is done

In some cases ngAnimate transitional classes (like *-remove & *-remove-active) were left after animation was over. Change introduced in this commit prevent such situations.

Closes #4490