Fixing undef resp in error condition
Merge pull request #9 from jpillora/patch-1

Fixing undef resp in error condition