Handle missing S3 metadata object

This is a theory about a null pointer exception; the commit
also adds better logging where the exception occurs.