Fix crash in scatterplot when domain does not have class var.