ArrayIndexOutOfBoundsException error in BaseRecalibratorSpark