Fix error in the way master variants are handled when testing availability before adding to cart