rpclient: fix masked error causing crash after max retries
rpclient: fix masked error causing crash after max retries

This commit fixes the error that is masked inside the for loop's scope.
Previously after max retries the error didn't leave the for scope and
therefore httpResponse remained nil which in turn resulted in a crash.

tb00/btcd,btcsuite/btcd,tb00/btcd,btcsuite/btcd