Sanity check on the method name.

Check if the request and the response refer to the same method,
otherwise ignore the response.