Make sure response is set before checking statusCode

I was seeing request return null response frequently
add logging to help us debug in production
Merge pull request #2 from GiantThinkwell/add-logging

woot