### 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)

item->set_text(2, author);
				item->set_metadata(2, description);
				item->set_cell_mode(3, TreeItem::CELL_MODE_CHECK);
				item->set_text(3, TTR("Enable"));
				bool is_active = EditorNode::get_singleton()->is_addon_plugin_enabled(path);
				item->set_checked(3, is_active);
				item->set_editable(3, true);
				item->add_button(4, get_editor_theme_icon(SNAME("Edit")), BUTTON_PLUGIN_EDIT, false, TTR("Edit Plugin"));
			}
		}
	}
	updating = false;
}
void EditorPluginSettings::_plugin_activity_changed() {
	if (updating) {
		return;
	}
	TreeItem *ti = plugin_list->get_edited();
	ERR_FAIL_COND(!ti);
	bool active = ti->is_checked(3);
	String name = ti->get_metadata(0);
	EditorNode::get_singleton()->set_addon_plugin_enabled(name, active, true);
	bool is_active = EditorNode::get_singleton()->is_addon_plugin_enabled(name);
	if (is_active != active) {
		updating = true;
		ti->set_checked(3, is_active);
		updating = false;
	}
}
void EditorPluginSettings::_create_clicked() {