fix($animate): ensure the active class is not applied if cancelled during reflow

Closes #4699