Fix a rare dungeon gen crash.