### Godot version

v4.0.beta.custom_build [fab9926a9]

### System information

Fedora 37

### Issue description

When creating a new inherited scene, saving the scene (for example with Ctrl+S) defaults to overwriting the scene being inherited, instead of prompting for a location to save to.

### Steps to reproduce

1. Create a new inherited scene
2. Press Ctrl+S

If the scene being inherited is imported (for example from a glTF), an error displays. If the inherited scene is a .tscn or .scn, it gets overridden by an inherited scene that tries to inherit itself, which is impossible and thus corrupt.

### Minimal reproduction project

N/A
Node *scene = editor_data.get_edited_scene_root();
	if (!scene) {
		return;
	}
	String path = EditorPaths::get_singleton()->get_project_settings_dir().path_join(p_file.get_file() + "-editstate-" + p_file.md5_text() + ".cfg");
	Ref<ConfigFile> cf;
	cf.instantiate();
	Error err = cf->load(path);
	if (err != OK || !cf->has_section("editor_states")) {
		
		return;
	}
	List<String> esl;
	cf->get_section_keys("editor_states", &esl);
	Dictionary md;
	for (const String &E : esl) {
		Variant st = cf->get_value("editor_states", E);
		if (st.get_type() != Variant::NIL) {
			md[E] = st;
		}
	}
	editor_data.set_editor_states(md);
}
void EditorNode::_set_scene_metadata(const String &p_file, int p_idx) {