resolves #127 - avoid infinite loop in getPeaks on malformed audio clips