### 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
valid_types = p_valid;
}
void SceneTreeEditor::set_editor_selection(EditorSelection *p_selection) {
	editor_selection = p_selection;
	tree->set_select_mode(Tree::SELECT_MULTI);
	tree->set_cursor_can_exit_tree(false);
	editor_selection->connect("selection_changed", callable_mp(this, &SceneTreeEditor::_selection_changed));
}
void SceneTreeEditor::_update_selection(TreeItem *item) {
	ERR_FAIL_COND(!item);
	NodePath np = item->get_metadata(0);
	if (!has_node(np)) {
		return;
	}
	Node *n = get_node(np);
	if (!n) {
		return;
	}
	if (editor_selection->is_selected(n)) {
		item->select(0);
	} else {
		item->deselect(0);
	}
	TreeItem *c = item->get_first_child();
	while (c) {
		_update_selection(c);
		c = c->get_next();
	}
}
void SceneTreeEditor::_selection_changed() {