Fix infinite loop if can't generate exit

Causes editor to hang if making a map
from scratch