cocos2d/cocos2d-js#1171: Fixed cc.texutreCache's addImage logic

cocos2d/cocos2d-js#1171