### Godot version

Godot 4 beta 10

### System information

Windows 10, mobile mode

### Issue description

You can give a node a blank name by deleting its name and press enter
![image](https://user-images.githubusercontent.com/94725241/210934227-a3b42f81-f152-470e-be6f-645321b9060e.png)


### Steps to reproduce

1. Create any node
2. Double click it, you should now be able to rename it
3. Backspace, than enter
4. You got a node with no name

### Minimal reproduction project

N/A
if (!can_rename) {
		return Variant(); //not editable tree
	}
	if (tree->get_button_id_at_position(p_point) != -1) {
		return Variant(); //dragging from button
	}
	Vector<Node *> selected_nodes;
	Vector<Ref<Texture2D>> icons;
	TreeItem *next = tree->get_next_selected(nullptr);
	while (next) {
		NodePath np = next->get_metadata(0);
		Node *n = get_node(np);
		if (n) {
			// O
			if (!n->get_owner() || n->get_owner() == get_scene_node() || n->get_owner()->get_scene_file_path().is_empty()) {
				selected_nodes.push_back(n);
				icons.push_back(next->get_icon(0));
			}
		}
		next = tree->get_next_selected(next);
	}
	if (selected_nodes.is_empty()) {
		return Variant();
	}