Fix bitcoin-cli -rpcwait with server warmup.

Handle the server warmup error like a connection failure if -rpcwait is
given for bitcoin-cli.