s3-auth: Fix a possible null pointer dereference