Fix NULL pointer dereference if userCallback was not set