### Godot version

master

### System information

> Starting from Godot 4.1, you can copy this information to your clipboard by using Help > Copy System Info at the top of the editor window.

This crashed my editor 😆 

### Issue description


```
================================================================
CrashHandlerException: Program crashed
Engine version: Godot Engine v4.1.dev.mono.custom_build (72f7131be1be81e3b8c3d45732d55e5765b95dde)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[0] EditorNode::_get_system_info (C:\Users\zaevi\source\Godot\godot-source\editor\editor_node.cpp:4378)
[1] EditorNode::_menu_option_confirm (C:\Users\zaevi\source\Godot\godot-source\editor\editor_node.cpp:2900)
[2] CallableCustomMethodPointer<EditorNode,int>::call (C:\Users\zaevi\source\Godot\godot-source\core\object\callable_method_pointer.h:105)
[3] Callable::callp (C:\Users\zaevi\source\Godot\godot-source\core\variant\callable.cpp:51)
[4] Object::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\core\object\object.cpp:1069)
[5] Node::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\scene\main\node.cpp:3568)
[6] Object::emit_signal<int> (C:\Users\zaevi\source\Godot\godot-source\core\object\object.h:891)
[7] PopupMenu::activate_item (C:\Users\zaevi\source\Godot\godot-source\scene\gui\popup_menu.cpp:1822)
[8] PopupMenu::gui_input (C:\Users\zaevi\source\Godot\godot-source\scene\gui\popup_menu.cpp:453)
[9] CallableCustomMethodPointer<PopupMenu,Ref<InputEvent> const &>::call (C:\Users\zaevi\source\Godot\godot-source\core\object\callable_method_pointer.h:104)
[10] Callable::callp (C:\Users\zaevi\source\Godot\godot-source\core\variant\callable.cpp:51)
[11] Object::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\core\object\object.cpp:1069)
[12] Node::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\scene\main\node.cpp:3568)
[13] Window::_window_input (C:\Users\zaevi\source\Godot\godot-source\scene\main\window.cpp:1458)
[14] CallableCustomMethodPointer<Window,Ref<InputEvent> const &>::call (C:\Users\zaevi\source\Godot\godot-source\core\object\callable_method_pointer.h:104)
[15] Callable::callp (C:\Users\zaevi\source\Godot\godot-source\core\variant\callable.cpp:51)
[16] DisplayServerWindows::_dispatch_input_event (C:\Users\zaevi\source\Godot\godot-source\platform\windows\display_server_windows.cpp:2369)
[17] Input::_parse_input_event_impl (C:\Users\zaevi\source\Godot\godot-source\core\input\input.cpp:708)
[18] Input::flush_buffered_events (C:\Users\zaevi\source\Godot\godot-source\core\input\input.cpp:967)
[19] DisplayServerWindows::process_events (C:\Users\zaevi\source\Godot\godot-source\platform\windows\display_server_windows.cpp:2063)
[20] OS_Windows::run (C:\Users\zaevi\source\Godot\godot-source\platform\windows\os_windows.cpp:1478)
[21] widechar_main (C:\Users\zaevi\source\Godot\godot-source\platform\windows\godot_windows.cpp:181)
[22] _main (C:\Users\zaevi\source\Godot\godot-source\platform\windows\godot_windows.cpp:205)
[23] main (C:\Users\zaevi\source\Godot\godot-source\platform\windows\godot_windows.cpp:217)
[24] __scrt_common_main_seh (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[25] <couldn't map PC to fn name>
-- END OF BACKTRACE --
================================================================
```

### Steps to reproduce

Change renderer to `gl_compatibility` and click `Help > Copy System Info`

### Minimal reproduction project

N/A
top_split->set_collapsed(true);
	VBoxContainer *srt = memnew(VBoxContainer);
	srt->set_v_size_flags(Control::SIZE_EXPAND_FILL);
	top_split->add_child(srt);
	srt->add_theme_constant_override("separation", 0);
	tab_preview_panel = memnew(Panel);
	tab_preview_panel->set_size(Size2(100, 100) * EDSCALE);
	tab_preview_panel->hide();
	tab_preview_panel->set_self_modulate(Color(1, 1, 1, 0.7));
	gui_base->add_child(tab_preview_panel);
	tab_preview = memnew(TextureRect);
	tab_preview->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
	tab_preview->set_size(Size2(96, 96) * EDSCALE);
	tab_preview->set_position(Point2(2, 2) * EDSCALE);
	tab_preview_panel->add_child(tab_preview);
	tabbar_panel = memnew(PanelContainer);
	tabbar_panel->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("tabbar_background"), SNAME("TabContainer")));
	srt->add_child(tabbar_panel);
	tabbar_container = memnew(HBoxContainer);
	tabbar_panel->add_child(tabbar_container);
	scene_tabs = memnew(TabBar);
	scene_tabs->set_select_with_rmb(true);
	scene_tabs->add_tab("unsaved");
	scene_tabs->set_tab_close_display_policy((TabBar::CloseButtonDisplayPolicy)EDITOR_GET("interface/scene_tabs/display_close_button").operator int());
	scene_tabs->add_theme_constant_override("icon_max_width", gui_base->get_theme_constant(SNAME("class_icon_size"), SNAME("Editor")));
	scene_tabs->set_max_tab_width(int(EDITOR_GET("interface/scene_tabs/maximum_width")) * EDSCALE);
	scene_tabs->set_drag_to_rearrange_enabled(true);
	scene_tabs->set_auto_translate(false);
	scene_tabs->connect("tab_changed", callable_mp(this, &EditorNode::_scene_tab_changed));
	scene_tabs->connect("tab_button_pressed", callable_mp(this, &EditorNode::_scene_tab_script_edited));