this fixes a possible floating point error if the animation URL is bad or doesn't contain any frames.