Fix shadow panic when a camera is despawned before extraction (#24877)