Fixed a bug. Refs #7789.
Merge branch 'feature/7789_fitpeak_to_findpeaks_new' into develop