Fixed a bug in cluster calculation that resulted in a malformed JSON and bad information when a data was a Numpy.NaN.