Fix to determining whether variable is constant in robust scale measure