Fix reference error with emailOptIn variable
Merge pull request #6194 from edx/will/ecom-757

ECOM-757: Fix reference error with emailOptIn variable