Do not write template cache in case of download error.