Fix exceptions in PercolationStats.java.