Avoid some errors that occur if the popover never opened.
Chrome, don't open these links!

Explicit event handler to prevent chrome from opening the links in the editor.