* **Electron Version** (output of `node_modules/.bin/electron --version`):
  * 5.0.0-beta.2
* **Operating System** (Platform and Version):
  * Windows 7 Professional (SP1)

### Expected Behavior
Not crash

### Actual behavior
Crash 3221225477

### To Reproduce
https://github.com/Gvozd/electron-quick-start/tree/issue-16883
based on electron-quick-start. only updated electron to 5.0.0-beta.2
try to open devtools from menu - crash

atom/browser/ui/views/menu_bar.cc
return kViewClassName;
}
void MenuBar::OnMenuButtonClicked(views::MenuButton* source,
                                  const gfx::Point& point,
                                  const ui::Event* event) {
  
  SetAcceleratorVisibility(false);
  if (!menu_model_)
    return;
  if (!window_->HasFocus())
    window_->RequestFocus();
  int id = source->tag();
  AtomMenuModel::ItemType type = menu_model_->GetTypeAt(id);
  if (type != AtomMenuModel::TYPE_SUBMENU) {
    menu_model_->ActivatedAt(id, 0);
    return;
  }
  GetFocusManager()->SetFocusedViewWithReason(
      source, views::FocusManager::kReasonFocusTraversal);
  
  MenuDelegate* menu_delegate = new MenuDelegate(this);
  menu_delegate->RunMenu(menu_model_->GetSubmenuModelAt(id), source,
                         event != nullptr && event->IsKeyEvent()
                             ? ui::MENU_SOURCE_KEYBOARD
                             : ui::MENU_SOURCE_MOUSE);
  menu_delegate->AddObserver(this);
}
void MenuBar::RefreshColorCache(const ui::NativeTheme* theme) {