become more robust against bad rpc providers

Maybe ``test_handle_message_raise_malformed_request``