Populate metadata before detecting redirects.

I've found that `s3_resource.metadata` doesn't include the `x-amz-website-redirect-location` header, causing redirects to be deleted.