Not sure attempting to register a null callback warrants throwing an exception.  I tried to keep the behavior similar to other APIs such as registerHealthCheckCallback.