Fix S3 connection
Merge pull request #11721 from owncloud/fix-s3-regression

[master] Fix S3 connection regression