Fix possible crash when opening popup menu on browser
Fix possible crash when opening popup menu on browser

This could happen if the menu was right-clicked while the connection was being
established, and then another right click would cause a crash.

gobby/gobby,gobby/gobby,gobby/gobby