fix and error in create-with-capacity

create-with-capacity could fail if there were no firms in the industry.