[SPARK-2515][mllib] Chi Squared test

Since we're returning `statistic = Double.NaN` for when `expected = 0.0` for the GOF test, do we also want to do the same thing here instead of throwing an exception?