[SPARK-2515][mllib] Chi Squared test

Right. But do we want to return a result with statistic and p-value = NaN or do we want to throw an exception in that case? My question was more around whether we want to have consistent behaviors for both cases.