fix coupon code logging, when coupon code is None