Fix access to undefined response
Previous code caused TypeError: Cannot read property 'pap' of undefined in case of errors.
Merge pull request #3 from oliversalzburg/fix/response-on-error

Fix access to undefined response