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.