Core/Dungeon finder: Fix teleport out after dungeon is finished
Closes 8914