fix empty string checking
Merge pull request #5467 from chinhodado/patch-1

fix empty string checking