Re #10002. Fixing PoldiPeakSearch problem with invalid iterators.