handle empty param at plugin init
registerHook seems to be called without params on start, which crash the plugin AND result disabled registrations. Handle it.
I believe registerHook should have been changed, but I do not have enough info to do it.