modified editVariantWasPrice() method to allow a NULL value as the price