Fix php notices when purchasing with an affiliate coupon in EDD. Fixes #384