Added check to make sure surveys have at least one survey item. #813