### Godot version

4.0.2

### System information

Windows 10,Radeon RX 550/550 Series,23.3.2,Vulkan

### Issue description

After Switching to the animations tabs and pressing the key symbol because I wanted to know what it does, Godot crashes

### Steps to reproduce

Go into a project 
Switch to the Animations Tab, make sure no animation is active 
And then press on the key symbol

here is a video demonstrating the bug

https://user-images.githubusercontent.com/59411880/233839816-5489899e-828f-4ac9-9de3-7914f727f754.mp4



### Minimal reproduction project

The File
[package.zip](https://github.com/godotengine/godot/files/11303712/package.zip)

if (has_chain && ik_chain.size()) {
					for (Node2D *&F : ik_chain) {
						if (key_pos) {
							te->insert_node_value_key(F, "position", F->get_position(), p_on_existing);
						}
						if (key_rot) {
							te->insert_node_value_key(F, "rotation", F->get_rotation(), p_on_existing);
						}
						if (key_scale) {
							te->insert_node_value_key(F, "scale", F->get_scale(), p_on_existing);
						}
					}
				}
			}
		} else if (Object::cast_to<Control>(ci)) {
			Control *ctrl = Object::cast_to<Control>(ci);
			if (key_pos) {
				te->insert_node_value_key(ctrl, "position", ctrl->get_position(), p_on_existing);
			}
			if (key_rot) {
				te->insert_node_value_key(ctrl, "rotation", ctrl->get_rotation(), p_on_existing);
			}
			if (key_scale) {
				te->insert_node_value_key(ctrl, "size", ctrl->get_size(), p_on_existing);
			}
		}
	}
	te->commit_insert_queue();
}
void CanvasItemEditor::_update_override_camera_button(bool p_game_running) {