Minor fix for CCSprite::draw(), checking whether texture is valid, if it's invalid, don't set the attribute for it.
Merge pull request #2818 from dumganhar/develop

[develop] Minor fix for CCSprite::draw(), checking whether texture is valid, if it's invalid, don't set the attribute for it.