[HooksManager] Fix whitelisted plugins hooks not fired

We're incorrectly comparing the hook name instead of the plugin name in
the whitelist