Second attempt at fixing infinite loop when mapgen can't find anywhere to put a staircase.