Fix issue with discount code not showing with only one gateway active. Closes #1397