Fixes #491. Accommodate behavior of MethodDispatcher for invalid endpoin...

...ts