Make sure pointer is initialized before deleting it. Refs #7347
Merge remote-tracking branch 'origin/bugfix/7347_FindPeaksMD_core_dump'