Make sure the first argument of $.animate is a function.

Throws an error otherwise.