Avoid #15

Check in callback function if `response` is undefined.