Fix issue with javascript error causing category choosing functionality to break for a product with variants.