Freeze when resting in a shelter after going through a region gate

Happens after last merge, @Rutrix

From the exception log:

NullReferenceException: Object reference not set to an instance of an object
RWDevourment.DevourmentMain.getFirstRegionShelter (AbstractRoom room) (at D:/Modding Repos/rain-world-devourment/DevourmentMain.cs:501)
RWDevourment.DevourmentMain.SaveState_SessionEnded (On.SaveState+orig_SessionEnded orig, SaveState self, RainWorldGame game, System.Boolean survived, System.Boolean newMalnourished) (at D:/Modding Repos/rain-world-devourment/DevourmentHooks.cs:1538)

Seems like after changing regions, the game freaks out and thinks shelters aren't actually shelters, and triggers the stuff to change shelter, causing a freeze.