Fixed bug in ResourceManager when reading loop attribute for
animations.