Fix NULL pointer dereference if userCallback was not set
Merge pull request #6 from saghul/usercallback-crash

Fix NULL pointer dereference if userCallback was not set