Fixed crash if there is an animation with no keyframes.

I've ran into a few models that have animations with no keyframes. We correctly display a message about it but then we crash. We shouldn't crash.