### Godot version

Godot 4 beta 12

### System information

Windows 10

### Issue description

![tttttt](https://user-images.githubusercontent.com/43501741/212407759-2e3cfa93-c9c1-4224-a118-2d236b0c5318.png)


### Steps to reproduce

Run a project in Godot 4 beta 12

### Minimal reproduction project

N/A
if (write_movie_file == String()) {
			show_accept(TTR("Movie Maker mode is enabled, but no movie file path has been specified.\nA default movie file path can be specified in the project settings under the Editor > Movie Writer category.\nAlternatively, for running single scenes, a `movie_file` string metadata can be added to the root node,\nspecifying the path to a movie file that will be used when recording that scene."), TTR("OK"));
			return;
		}
	}
	String run_filename;
	if ((p_current && p_custom.is_empty()) || (editor_data.get_edited_scene_root() && !p_custom.is_empty() && p_custom == editor_data.get_edited_scene_root()->get_scene_file_path())) {
		Node *scene = editor_data.get_edited_scene_root();
		if (!scene) {
			show_accept(TTR("There is no defined scene to run."), TTR("OK"));
			return;
		}
		if (scene->get_scene_file_path().is_empty()) {
			current_menu_option = FILE_SAVE_AND_RUN;
			_menu_option_confirm(FILE_SAVE_AS_SCENE, true);
			file->set_title(TTR("Save scene before running..."));
			return;
		}
		run_filename = scene->get_scene_file_path();
	} else if (!p_custom.is_empty()) {
		run_filename = p_custom;
	}
	if (run_filename.is_empty()) {
		
		if (!ensure_main_scene(false)) {
			return;
		}
		run_filename = GLOBAL_DEF_BASIC("application/run/main_scene", "");
	}
	if (bool(EDITOR_GET("run/auto_save/save_before_running"))) {