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

...ts
Can you add tests for PATCH, POST, and PUT, too?