Removed unrequired (event !== undefined) check from animation/transition event handler