Fix affwp_get_affiliate_unpaid_earnings()