Fixes "Uncaught TypeError: Cannot read property 'cursor' of undefined"

This error was happening when there was no menu registered for a catched
event, like "click", or "dblclick"