ENYO-2809: fix a wrong condition statement
Merge pull request #481 from enyojs/ENYO-2809-2

ENYO-2809: fix a wrong condition statement