rpc: Fix test (!= vs == in wrong spot)