Added a check for posted discount in edd_get_cart_discounted_amount(). #715