Fixes nullpointer when no parameters are registered