[Fix] - Check empty string for textureData

Previous way which is used to check string is empty or null is not right because in case of string is empty the expression always false.
Merge pull request #1992 from MQuy/patch-2

[Fix] - Check empty string for textureData