Prevent panic when response is nil
Prevent panic when response is nil

The response from go's http client can be nil when
an error occurs. In order to prevent panicking the
error needs to be checked before attempting to access
the response.

esendex/esendex-go-sdk