add logic to throw error when unexpected nil received
reword error
Merge pull request #124 from intercom/jo/throw-error-on-nil-response

add logic to throw error when unexpected nil received