PollTask: print bad payload and add better error handling
PollTask: print bad payload and add better error handling

Addresses https://github.com/airbrake/javabrake/issues/49#issuecomment-821052550

If the HTTP request failed, we shouldn't continue execution. Otherwise there
will be a parse error since `response` is always `null`.

airbrake/javabrake