fixed MLlib Naive-Bayes java example bug

the filter tests Double objects by references whereas it should test their values