Fixed a regression in add to cart logic.