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.
Merge pull request #24 from blommestein/patch-1

Update Animator.dart

Just grep the source code. There are a few lines having the similar issue. I'll fix them together.