Correctly test if null was registered, and for a param array