Explicitly check if response is None.

Response objects are falsey if there are HTTP errors, e.g. 404s,
but we need to raise exceptions in those cases, since we use
that to, e.g., search for users.