Ensure response exists before using it
Merge pull request #1 from segmentio/fix/uncaught

Ensure response exists before using it