Fix a bug in GraphUtil::saveRoads() function.