Don't try to call callback when not defined
Merge pull request #1 from ninech/dont-call-undefined-callback

Don't try to call callback when not defined