[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.