[SPARK-2515][mllib] Chi Squared test

could be initialized as a null