### Godot version

4.1.1

### System information

Windows 11 - Godot 4.1.1

### Issue description

Using EditorPlugin.make_mesh_previews() crashes Godot. 
The MRP contains a minimal EditorPlugin.

### Steps to reproduce

```
@tool
extends EditorPlugin
 
func _ready():

	var _mesh = preload("res://box.tres")

	var _mesh_arr : Array[Mesh]
	_mesh_arr.append(_mesh)

	var _2d_array : Array[Texture2D] = get_editor_interface().make_mesh_previews(_mesh_arr, 128)

```
### Minimal reproduction project

[MakeMeshPreview.zip](https://github.com/godotengine/godot/files/12269663/MakeMeshPreview.zip)

WARN_PRINT("Plugin config misses \"plugin/version\" key: " + path);
				key_missing = true;
			}
			if (!cf->has_section_key("plugin", "description")) {
				WARN_PRINT("Plugin config misses \"plugin/description\" key: " + path);
				key_missing = true;
			}
			if (!cf->has_section_key("plugin", "script")) {
				WARN_PRINT("Plugin config misses \"plugin/script\" key: " + path);
				key_missing = true;
			}
			if (!key_missing) {
				String name = cf->get_value("plugin", "name");
				String author = cf->get_value("plugin", "author");
				String version = cf->get_value("plugin", "version");
				String description = cf->get_value("plugin", "description");
				String scr = cf->get_value("plugin", "script");
				const PackedInt32Array boundaries = TS->string_get_word_breaks(description, "", 80);
				String wrapped_description;
				for (int j = 0; j < boundaries.size(); j += 2) {
					const int start = boundaries[j];
					const int end = boundaries[j + 1];
					wrapped_description += "\n" + description.substr(start, end - start + 1).rstrip("\n");
				}
				TreeItem *item = plugin_list->create_item(root);
				item->set_text(0, name);
				item->set_tooltip_text(0, TTR("Name:") + " " + name + "\n" + TTR("Path:") + " " + path + "\n" + TTR("Main Script:") + " " + scr + "\n" + TTR("Description:") + " " + wrapped_description);
				item->set_metadata(0, path);
				item->set_text(1, version);
				item->set_metadata(1, scr);