Added null check for bucket, object, and temporaryEndpoint when calling S3 api.
Added hack to prevent encoding of '?location' when calling S3 api.
Merge pull request #65 from TheWeatherCompany/s3-npe-fix

Fix S3/NPE issues from upstream merge.