Fix for loops getting falsey (but not undefined) values

This brought down marketplace-dev for about twenty minutes today. More interestingly, it only affects Firefox.