fix reported issue where cohSNR is nan because of negative mEr See merge request !1694
mentioned in issue #1147 (closed)