### Godot version

4.1.1stable

### System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Compatibility) - NVIDIA GeForce GTX 750 Ti (NVIDIA; 31.0.15.3179) - 12th Gen Intel(R) Core(TM) i5-12400F (12 Threads)

### Issue description

An incredibly minor issue - when exporting with a console wrapper icon specified it gets applied to the wrong one.

### Steps to reproduce

![image](https://github.com/godotengine/godot/assets/40964335/d3bc3cd2-6e25-402d-802d-6d87ab142f7f)
![image](https://github.com/godotengine/godot/assets/40964335/4a3e14d5-535e-45ae-88e7-b55c5ea9e46f)
As you can see, the purple godot is the main icon. The gray one is the wrapper icon.
![image](https://github.com/godotengine/godot/assets/40964335/59883a9e-bde1-4094-a4d5-372ee031e936)
Yet when we export, they are flipped.
![image](https://github.com/godotengine/godot/assets/40964335/877ec766-0b5b-4e92-b3c9-50dd05b3be39)
![image](https://github.com/godotengine/godot/assets/40964335/1dcad3c7-b036-40ee-b05d-1f3be4e16341)
They both are the main one when only the main icon is specified.

### Minimal reproduction project

N/A
f->get_buffer(images[w].data.ptrw(), img_size);
			f->seek(prev_offset);
		}
	} else {
		Ref<Image> src_image;
		src_image.instantiate();
		err = ImageLoader::load_image(p_src_path, src_image);
		ERR_FAIL_COND_V(err != OK || src_image->is_empty(), ERR_CANT_OPEN);
		for (size_t i = 0; i < sizeof(icon_size) / sizeof(icon_size[0]); ++i) {
			int size = (icon_size[i] == 0) ? 256 : icon_size[i];
			Ref<Image> res_image = src_image->duplicate();
			ERR_FAIL_COND_V(res_image.is_null() || res_image->is_empty(), ERR_CANT_OPEN);
			res_image->resize(size, size, (Image::Interpolation)(p_preset->get("application/icon_interpolation").operator int()));
			images[icon_size[i]].data = res_image->save_png_to_buffer();
		}
	}
	uint16_t valid_icon_count = 0;
	for (size_t i = 0; i < sizeof(icon_size) / sizeof(icon_size[0]); ++i) {
		if (images.has(icon_size[i])) {
			valid_icon_count++;
		} else {
			int size = (icon_size[i] == 0) ? 256 : icon_size[i];
			add_message(EXPORT_MESSAGE_WARNING, TTR("Resources Modification"), vformat(TTR("Icon size \"%d\" is missing."), size));
		}
	}
	ERR_FAIL_COND_V(valid_icon_count == 0, ERR_CANT_OPEN);
	Ref<FileAccess> fw = FileAccess::open(p_dst_path, FileAccess::WRITE, &err);
	if (err != OK) {
		return err;
	}