Fixed #5797: Fix a bug of cc.textureCache.addImage