### Godot version

v4.0.3.stable.mono.official [5222a99f5]

### System information

Ubuntu 22.04 LTS

### Issue description

This issue is similar to #61296, but instead of being spammed with errors Godot simply crashes when loading the tileset

I've tried to edit the .tres file to remove the invalid tiles, but the crash still happens.

### Steps to reproduce

- Open the reproduction project in the Godot editor;
- Try to open the Terrain.tres file.

After doing so Godot should crash with the following output:
```shell
Godot Engine v4.0.3.stable.mono.official.5222a99f5 - https://godotengine.org
Vulkan API 1.3.224 - Forward+ - Using Vulkan Device #0: Intel - Intel(R) HD Graphics 5500 (BDW GT2)
 
WARNING: Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:70)
ERROR: The TileSetAtlasSource atlas has no tile at (1, 35).
   at: get_tile_data (scene/resources/tile_set.cpp:4515)

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.3.stable.mono.official (5222a99f5d38cd5346254cefed8f65315bca4fcb)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/dotnet/shared/Microsoft.NETCore.App/6.0.16/libcoreclr.so(+0x4b674e) [0x7f13c0ddb74e] (??:0)
[2] /usr/lib/dotnet/shared/Microsoft.NETCore.App/6.0.16/libcoreclr.so(+0x4b5cd7) [0x7f13c0ddacd7] (??:0)
[3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f13e49d3520] (??:0)
[4] godot() [0x27187bb] (??:0)
[5] godot() [0x427f8d5] (??:0)
[6] godot() [0x4e6bfa0] (??:0)
[7] /lib/x86_64-linux-gnu/libc.so.6(+0x94b43) [0x7f13e4a25b43] (??:0)
[8] /lib/x86_64-linux-gnu/libc.so.6(+0x126a00) [0x7f13e4ab7a00] (??:0)
-- END OF BACKTRACE --
================================================================
Aborted (core dumped)
```

### Minimal reproduction project

[reproduction-project.zip](https://github.com/godotengine/godot/files/11605655/reproduction-project.zip)

if (p_visible || is_tile_map_selected()) {
		
		TileMap *tile_map = Object::cast_to<TileMap>(ObjectDB::get_instance(tile_map_id));
		tileset_editor_button->set_visible(tile_set.is_valid());
		tilemap_editor_button->set_visible(tile_map);
		if (tile_map && (!is_editing_tile_set || !p_visible)) {
			EditorNode::get_singleton()->make_bottom_panel_item_visible(tilemap_editor);
		} else {
			EditorNode::get_singleton()->make_bottom_panel_item_visible(tileset_editor);
		}
		is_visible = true;
	} else {
		tileset_editor_button->hide();
		tilemap_editor_button->hide();
		EditorNode::get_singleton()->hide_bottom_panel();
		is_visible = false;
	}
}
bool TilesEditorPlugin::is_tile_map_selected() {