Fixes coupon codes application for CreateLineItems action. Fixes #4697