Fix bug 961: SACSegmentation crashes when setSamplesMaxDist() is used and a search object with indices is used