VE-1028 Fix check for defined variable in Firefox
Merge pull request #3771 from Wikia/VE-1028

VE-1028 Fix check for defined variable in Firefox