Throw an exception on NULL response
bug #149 Throw an exception on NULL response (larowlan)

This PR was squashed before being merged into the 2.0-dev branch (closes #149).

Discussion
----------

Throw an exception on NULL response

Fixes #148

Commits
-------

393c94d Throw an exception on NULL response