Stop ChiSquare pdf failing for 0-input