Don't assume that all callbacks are set.

If one of callbacks is not set, the application crashes.
This is the case when you update the library and the update adds more
callbacks, or when you simply don't want to receive some of the updates
(callbacks).
In any case, defining all callbacks shouldn't be mandatory.
Merge pull request #60 from nurupo/master

Don't assume that all callbacks are set.