Canceling the animation in the animationEnded handler triggers a crash. This is due to multiple lists being iterated and manipulated at the same time. This adds a test case which simulates the crashy situation. REVIEW: 126975