### Godot version

v4.0.beta.custom_build [7dfcd5556]

### System information

Fedora 37

### Issue description

Rendering a ReflectionProbe immediately crashes the engine.
Backtrace from opening the 3D platformer demo:
```
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta.custom_build (7dfcd555671e31e964948aa3e0f650898d39b80f)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib64/libc.so.6(+0x3cb50) [0x7f03f21f6b50] (??:0)
[2] RendererSceneRenderImplementation::RenderForwardClustered::RenderBufferDataForwardClustered::get_depth_fb(RendererSceneRenderImplementation::RenderForwardClustered::RenderBufferDataForwardClustered::DepthFrameBufferType) (/home/jtnicholl/godot/source/godot/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp:227)
[3] RendererSceneRenderImplementation::RenderForwardClustered::_render_scene(RenderDataRD*, Color const&) (/home/jtnicholl/godot/source/godot/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp:1726)
[4] RendererSceneRenderRD::render_scene(Ref<RenderSceneBuffers> const&, RendererSceneRender::CameraData const*, RendererSceneRender::CameraData const*, PagedArray<RenderGeometryInstance*> const&, PagedArray<RID> const&, PagedArray<RID> const&, PagedArray<RID> const&, PagedArray<RID> const&, PagedArray<RID> const&, PagedArray<RID> const&, RID, RID, RID, RID, RID, RID, int, float, RendererSceneRender::RenderShadowData const*, int, RendererSceneRender::RenderSDFGIData const*, int, RendererSceneRender::RenderSDFGIUpdateData const*, RenderingMethod::RenderInfo*) (/home/jtnicholl/godot/source/godot/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp:1028)
[5] RendererSceneCull::_render_scene(RendererSceneRender::CameraData const*, Ref<RenderSceneBuffers> const&, RID, RID, unsigned int, RID, RID, RID, RID, int, float, bool, RenderingMethod::RenderInfo*) (/home/jtnicholl/godot/source/godot/servers/rendering/renderer_scene_cull.cpp:3298 (discriminator 4))
[6] RendererSceneCull::_render_reflection_probe_step(RendererSceneCull::Instance*, int) (/home/jtnicholl/godot/source/godot/servers/rendering/renderer_scene_cull.cpp:3424 (discriminator 2))
[7] RendererSceneCull::render_probes() (/home/jtnicholl/godot/source/godot/servers/rendering/renderer_scene_cull.cpp:3452)
[8] RenderingServerDefault::_draw(bool, double) (/home/jtnicholl/godot/source/godot/servers/rendering/rendering_server_default.cpp:91)
[9] RenderingServerDefault::draw(bool, double) (/home/jtnicholl/godot/source/godot/servers/rendering/rendering_server_default.cpp:397)
[10] Main::iteration() (/home/jtnicholl/godot/source/godot/main/main.cpp:3085)
[11] OS_LinuxBSD::run() (/home/jtnicholl/godot/source/godot/platform/linuxbsd/os_linuxbsd.cpp:878)
[12] /home/jtnicholl/godot/source/godot/bin/godot.linuxbsd.editor.dev.x86_64(main+0x15a) [0x2679a00] (/home/jtnicholl/godot/source/godot/platform/linuxbsd/godot_linuxbsd.cpp:75)
[13] /lib64/libc.so.6(+0x27510) [0x7f03f21e1510] (??:0)
[14] /lib64/libc.so.6(__libc_start_main+0x89) [0x7f03f21e15c9] (??:0)
[15] /home/jtnicholl/godot/source/godot/bin/godot.linuxbsd.editor.dev.x86_64(_start+0x25) [0x26797e5] (??:?)
-- END OF BACKTRACE --
================================================================
```
This appears to be a regression from #71130, reverting it fixes the issue.

### Steps to reproduce

Open a scene with a ReflectionProbe.

### Minimal reproduction project

https://github.com/godotengine/godot-demo-projects/tree/4.0-dev/3d/platformer
RD::FramebufferFormatID fb_format = RD::get_singleton()->framebuffer_get_format(p_framebuffer);
	p_params->framebuffer_format = fb_format;
	if ((uint32_t)p_params->element_count > render_list_thread_threshold && false) { 
		
		thread_draw_lists.resize(WorkerThreadPool::get_singleton()->get_thread_count());
		RD::get_singleton()->draw_list_begin_split(p_framebuffer, thread_draw_lists.size(), thread_draw_lists.ptr(), p_initial_color_action, p_final_color_action, p_initial_depth_action, p_final_depth_action, p_clear_color_values, p_clear_depth, p_clear_stencil, p_region, p_storage_textures);
		WorkerThreadPool::GroupID group_task = WorkerThreadPool::get_singleton()->add_template_group_task(this, &RenderForwardClustered::_render_list_thread_function, p_params, thread_draw_lists.size(), -1, true, SNAME("ForwardClusteredRenderList"));
		WorkerThreadPool::get_singleton()->wait_for_group_task_completion(group_task);
		RD::get_singleton()->draw_list_end(p_params->barrier);
	} else {
		
		RD::DrawListID draw_list = RD::get_singleton()->draw_list_begin(p_framebuffer, p_initial_color_action, p_final_color_action, p_initial_depth_action, p_final_depth_action, p_clear_color_values, p_clear_depth, p_clear_stencil, p_region, p_storage_textures);
		_render_list(draw_list, fb_format, p_params, 0, p_params->element_count);
		RD::get_singleton()->draw_list_end(p_params->barrier);
	}
}
void RenderForwardClustered::_setup_environment(const RenderDataRD *p_render_data, bool p_no_fog, const Size2i &p_screen_size, bool p_flip_y, const Color &p_default_bg_color, bool p_opaque_render_buffers, bool p_pancake_shadows, int p_index) {
	RendererRD::LightStorage *light_storage = RendererRD::LightStorage::get_singleton();
	Ref<RenderSceneBuffersRD> rd = p_render_data->render_buffers;
	RID env = is_environment(p_render_data->environment) ? p_render_data->environment : RID();
	RID reflection_probe_instance = p_render_data->reflection_probe.is_valid() ? light_storage->reflection_probe_instance_get_probe(p_render_data->reflection_probe) : RID();
	
	if (p_index >= (int)scene_state.uniform_buffers.size()) {
		uint32_t from = scene_state.uniform_buffers.size();
		scene_state.uniform_buffers.resize(p_index + 1);
		for (uint32_t i = from; i < scene_state.uniform_buffers.size(); i++) {