Handle case where animate callbacks are null.

This usually caused an error "Uncaught TypeError: Cannot read property 'length' of null" on line 133 when removing a view.
Merge pull request #11 from nadavshatz/master

Handle case where animate callbacks are null.