Merge pull request #2147 from dingpinglv/Iss5833_Scale9Sprite

Fixed #5833: add a check to cc.Scale9Sprite._cacheScale9Sprite
Correct a mistake of cc.Scale9Sprite