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