Improving Domain Generalization by Learning without Forgetting: Application in Retail Checkout