### 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 (drag_type == DRAG_NONE || drag_selection.is_empty() || !drag_selection.front()->get()) {
		return;
	}
	String transform_message;
	Transform2D current_transform = drag_selection.front()->get()->get_global_transform();
	double snap = EDITOR_GET("interface/inspector/default_float_step");
	int snap_step_decimals = Math::range_step_decimals(snap);
#define FORMAT(value) (TS->format_number(String::num(value, snap_step_decimals)))
	switch (drag_type) {
		case DRAG_MOVE:
		case DRAG_MOVE_X:
		case DRAG_MOVE_Y: {
			Vector2 delta = current_transform.get_origin() - original_transform.get_origin();
			if (drag_type == DRAG_MOVE) {
				transform_message = TTR("Moving:") + " (" + FORMAT(delta.x) + ", " + FORMAT(delta.y) + ") px";
			} else if (drag_type == DRAG_MOVE_X) {
				transform_message = TTR("Moving:") + " " + FORMAT(delta.x) + " px";
			} else if (drag_type == DRAG_MOVE_Y) {
				transform_message = TTR("Moving:") + " " + FORMAT(delta.y) + " px";
			}
		} break;
		case DRAG_ROTATE: {
			real_t delta = Math::rad_to_deg(current_transform.get_rotation() - original_transform.get_rotation());