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