Update Animator.dart

I am only glancing at the source in passing, but please confirm whether this was the intended behaviour -- without it, the Animator crashes periodically.