Refs #10224. Fixed the bug caused by array boundary.

On branch feature/10224_findpeaks_bug

      modified:   ../Mantid/Framework/Algorithms/src/FindPeaks.cpp
Merge branch 'bugfix/10224_findpeaks_bug' into develop