Fix a bug where Animation would throw an error if there are no frames on it