Closed #5545: fixed a bug of cc.TextureCache that cc.loader will shutdown when some resources fail

Fixed a bug of cc.TextureCache that cc.loader will shutdown when some resources fail