Avoid divide by zero in SpectrumConstraint.normalise