check existance of callback parameter

check that callback exists before reference to avoid error messages in
log
Merge pull request #15 from Resseguie/callback-error

check existance of callback parameter