Added failsafe for Firefox not firing transition ends.