s3 metadata request throws exception for objects pending restore from glacier

When you store an object in glacier and then restore it (by moving between buckets with appropriate lifecycle rules), the requests for the object's metadata throws exceptions (the header parsing doesn't check for existence of expiry-date before attempting to parse it).