### 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
if (p_get_msaa) {
		return get_texture_slice(RB_SCOPE_BUFFERS, RB_TEX_VELOCITY_MSAA, p_layer, 0);
	} else {
		RendererRD::TextureStorage *texture_storage = RendererRD::TextureStorage::get_singleton();
		RID velocity_slice = texture_storage->render_target_get_override_velocity_slice(render_target, p_layer);
		if (velocity_slice.is_valid()) {
			return velocity_slice;
		} else {
			return get_texture_slice(RB_SCOPE_BUFFERS, RB_TEX_VELOCITY, p_layer, 0);
		}
	}
}