RPC validateaddress: test pwalletMain for NULL (no-wallet mode)