Fixed #2496 Fixed a bug of cc.TextureCache that the status of texture is wrong in callback