Town Network: Fixed an off-by-one error in recreate_after_load()

This bug caused the last town in the town array to not be considered for a
town network, causing problems later on.
Town Network: Added some robustness for errors for town_created by checking
and repairing invalid town network recno's