Small extra check for organized connect component segmentation

issue #799