Fix a segfault when trying to get animation with models which doesn't have animation