Removed usage of falsy value in if and prefer equality testing with empty string.

This fixes issue #169.

I did not include .min.js version since its a generated file and can clash with other PR.