### 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 (selected == p_node) {
		return;
	}
	TreeItem *item = p_node ? _find(tree->get_root(), p_node->get_path()) : nullptr;
	if (item) {
		if (auto_expand_selected) {
			// M
			TreeItem *node = item->get_parent();
			while (node && node != tree->get_root()) {
				node->set_collapsed(false);
				node = node->get_parent();
			}
			item->select(0);
			item->set_as_cursor(0);
			selected = p_node;
			tree->ensure_cursor_is_visible();
		}
	} else {
		if (!p_node) {
			selected = nullptr;
		}
		_update_tree();
		selected = p_node;
	}
	if (p_emit_selected) {
		emit_signal(SNAME("node_selected"));
	}
}
void SceneTreeEditor::_rename_node(ObjectID p_node, const String &p_name) {