Handle undefined callback function
Merge pull request #574 from benrudolph/async-callback

Handle undefined callback function