Fixed null pointer issue in Cluster toJSON