Handle errors while unpickling.

The metadata cache for s3 can get corrupted. If unpickling raises such
an error we should just refetch the data from s3.