### 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 (!p_node) {
		return;
	}
	
	
	bool part_of_subscene = false;
	if (!display_foreign && p_node->get_owner() != get_scene_node() && p_node != get_scene_node()) {
		if ((show_enabled_subscene || can_open_instance) && p_node->get_owner() && (get_scene_node()->is_editable_instance(p_node->get_owner()))) {
			part_of_subscene = true;
			
		} else {
			return;
		}
	} else {
		part_of_subscene = p_node != get_scene_node() && get_scene_node()->get_scene_inherited_state().is_valid() && get_scene_node()->get_scene_inherited_state()->find_node_by_path(get_scene_node()->get_path_to(p_node)) >= 0;
	}
	TreeItem *item = tree->create_item(p_parent);
	item->set_text(0, p_node->get_name());
	if (can_rename && !part_of_subscene) {
		item->set_editable(0, true);
	}
	item->set_selectable(0, true);
	if (can_rename) {
		bool collapsed = p_node->is_displayed_folded();
		if (collapsed) {
			item->set_collapsed(true);
		}
	}
	Ref<Texture2D> icon = EditorNode::get_singleton()->get_object_icon(p_node, "Node");
	item->set_icon(0, icon);