Prevent incomplete dungeon spawning

The cave generator is tearing apart the dungeons.

http://i.imgur.com/n40BWC1.png
https://dl.dropbox.com/u/100008207/screenshot_2097666821.jpg