Rework how duplicate items are handled in edd_add_to_cart() for #2294