advanced_image_processing: As local maxima are removed, it is possible that none remain by the point the watershed or other segmentation algorithm are reached. Added a if statement to stop entrance into the watershed portion if this was the case.