check for missing peaks

Missing peaks result in -1 for some indices, and NaN for some intensities and mass shifts. The pull request adds further checks for these cases. Performance and results remain unchanged. - Includes also a minor fix of the debug output.