Fix bug crashing the plugin when receiving a message from another plugin.