### Godot version

v4.1.1.stable.official [bd6af8e0e]

### System information

Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (NVIDIA; 31.0.15.3667) - AMD Ryzen 9 7900X 12-Core Processor (24 Threads)

### Issue description

This [addon](https://godotengine.org/asset-library/asset/1989) is shown as empty when downloaded via the editor. If downloading from the website everything works fine and there is content in the zip file.
![image](https://github.com/godotengine/godot/assets/10883690/259f114a-6ac0-4dd2-b71f-75c35d91ba85)

The asset uses `Custom` as repository host, linking with URL to `https://github.com/kenyoni-software/godot-addons/releases/download/hide_private_properties-1.0.1/hide_private_properties-1_0_1.zip`

### Steps to reproduce

Go to the Asset Lib and download [Hide Private Properties](https://godotengine.org/asset-library/asset/1989).

### Minimal reproduction project

N/A
extension_guess["yml"] = tree->get_editor_theme_icon(SNAME("TextFile"));
		extension_guess["yaml"] = tree->get_editor_theme_icon(SNAME("TextFile"));
		extension_guess["toml"] = tree->get_editor_theme_icon(SNAME("TextFile"));
		extension_guess["cfg"] = tree->get_editor_theme_icon(SNAME("TextFile"));
		extension_guess["ini"] = tree->get_editor_theme_icon(SNAME("TextFile"));
	}
	Ref<Texture2D> generic_extension = tree->get_editor_theme_icon(SNAME("Object"));
	unzClose(pkg);
	updating = true;
	tree->clear();
	TreeItem *root = tree->create_item();
	root->set_cell_mode(0, TreeItem::CELL_MODE_CHECK);
	root->set_checked(0, true);
	root->set_icon(0, tree->get_theme_icon(SNAME("folder"), SNAME("FileDialog")));
	root->set_text(0, "res://");
	root->set_editable(0, true);
	HashMap<String, TreeItem *> dir_map;
	int num_file_conflicts = 0;
	for (const String &E : files_sorted) {
		String path = E;
		int depth = p_depth;
		bool skip = false;
		while (depth > 0) {
			int pp = path.find("/");
			if (pp == -1) {
				skip = true;
				break;
			}
			path = path.substr(pp + 1, path.length());
			depth--;