Add protection against undefined callbacks.
1.0.1