Issue 4768: add an assert to cc.Sprite for debug friendly

add an assert to cc.Sprite for debug friendly and fixed a bug of cc.TextFiledTTF