Make transformation of Gauss Hermite QR weights more efficient

This removes also a numpy warning about a division by zero.
The division never caused issues becaue the data affected
was never used.