Retry JSON-RPC requests that return status code 0

This could potentially get into an infinite loop if the request
*keeps on* returning an error with status 0 and never completing,
but that's *extremely* unlikely.