Fixed the bug.  Refs #7345.
Merge branch 'bugfix/7345_findpeak_exception' into develop