### Godot version

v4.0.beta.custom_build [9f1fe0895]

### System information

Fedora 36

### Issue description

Opening scenes with a sky panorama and any ReflectionProbes print "test" over a hundred times, as well as a few hundred varied error messages for each probe in the scene. Toggling visibility of the probes off and on again prints the errors again.
Everything seems to still render correctly, as far as I can tell.
Regression from #70253.

### Steps to reproduce

Open a scene with a sky panorama and a reflection probe.

### Minimal reproduction project

https://github.com/godotengine/godot-demo-projects/tree/4.0-dev/3d/platformer
for (KeyValue<StringName, Ref<RenderBufferCustomDataRD>> &E : data_buffers) {
		E.value->free_data();
	}
	
	for (KeyValue<NTKey, NamedTexture> &E : named_textures) {
		free_named_texture(E.value);
	}
	named_textures.clear();
	
	for (int i = 0; i < luminance.fb.size(); i++) {
		RD::get_singleton()->free(luminance.fb[i]);
	}
	luminance.fb.clear();
	for (int i = 0; i < luminance.reduce.size(); i++) {
		RD::get_singleton()->free(luminance.reduce[i]);
	}
	luminance.reduce.clear();
	if (luminance.current_fb.is_valid()) {
		RD::get_singleton()->free(luminance.current_fb);
		luminance.current_fb = RID();
	}
	if (luminance.current.is_valid()) {
		RD::get_singleton()->free(luminance.current);
		luminance.current = RID();
	}
}
void RenderSceneBuffersRD::configure(RID p_render_target, const Size2i p_internal_size, const Size2i p_target_size, float p_fsr_sharpness, float p_texture_mipmap_bias, RS::ViewportMSAA p_msaa_3d, RenderingServer::ViewportScreenSpaceAA p_screen_space_aa, bool p_use_taa, bool p_use_debanding, uint32_t p_view_count) {