suppress a warning in IRouteMessagesToEndpoints

for #2146