don't crash if animations are undefined for current sprite.