Fix undefined index error when response body is null

Noticed on PHP 5.5 that when S3 returns a null body, was getting this error:

`Error: Undefined property: stdClass::$body`

So I fixed it by checking that the `body` property is set before trying to append data to it.