### Godot version

v4.0.stable.official [92bee43ad]

### System information

Linux - v4.0.stable.official [92bee43ad]

### Issue description

It gives you the possibility of removing unexisting key/value pairs from a dictionary.

### Steps to reproduce

![image](https://github.com/godotengine/godot/assets/69520693/35beadbe-bfdd-4176-9b26-222bbf69cafa)
![image](https://github.com/godotengine/godot/assets/69520693/7ed647e0-a2af-4e58-9f00-f77b7bc7bb02)
![image](https://github.com/godotengine/godot/assets/69520693/f08bf824-8408-45eb-bb84-f1dc7e19e392)


### Minimal reproduction project

N/A
if (reorder_from_index < 0 || is_read_only()) {
		return;
	}
	Ref<InputEventMouseMotion> mm = p_event;
	if (mm.is_valid()) {
		Variant array = object->get_array();
		int size = array.call("size");
		
		reorder_mouse_y_delta += mm->get_relative().y;
		
		
		if ((reorder_to_index == 0 && reorder_mouse_y_delta < 0.0f) || (reorder_to_index == size - 1 && reorder_mouse_y_delta > 0.0f)) {
			reorder_mouse_y_delta = 0.0f;