Fix model animation cache

For #2078.

Fixed a bug in `Model` where the wrong animations could be used when the model was created from glTF JSON instead of a url to a glTF file.

This is a small tweak; there is a much larger mode cache update from an external contributor on the horizon.