### Godot version

Godot 4-beta10

### System information

Linux, KDE Neon, OpenGL3, Mesa Intel(R) UHD Graphics (CML GT2)

### Issue description

I can't move to Animation player when I open a AnimatedSprite

See the video:
https://youtu.be/_nyN42rNlTw


### Steps to reproduce

- Open Scene GPlayer
- Select Idle (Animation player) node
- Select Body (Animation sprite) node
- Select animation in bottom tab

### Minimal reproduction project

You can test in my game is open source and don't have many files 👍🏻 

[the-zero-day.zip](https://github.com/godotengine/godot/files/10304677/the-zero-day.zip)

String type = p.name;
			String label = p.name;
			doc_name = p.name;
			
			if (!EditorNode::get_editor_data().is_type_recognized(type) && p.hint_string.length() && FileAccess::exists(p.hint_string)) {
				
				Ref<Script> scr = ResourceLoader::load(p.hint_string, "Script");
				StringName base_type;
				StringName name;
				if (scr.is_valid()) {
					base_type = scr->get_instance_base_type();
					name = EditorNode::get_editor_data().script_class_get_name(scr->get_path());
					Vector<DocData::ClassDoc> docs = scr->get_documentation();
					if (!docs.is_empty()) {
						doc_name = docs[0].name;
					}
					if (name != StringName() && label != name) {
						label = name;
					}
				}
				while (scr.is_valid()) {
					name = EditorNode::get_editor_data().script_class_get_name(scr->get_path());
					String icon_path = EditorNode::get_editor_data().script_class_get_icon_path(name);
					if (name != StringName() && !icon_path.is_empty()) {
						category->icon = ResourceLoader::load(icon_path, "Texture");
						break;
					}
					const EditorData::CustomType *ctype = EditorNode::get_editor_data().get_custom_type_by_path(scr->get_path());
					if (ctype) {
						category->icon = ctype->icon;