Fixes #1528

Throwing an invalid operation exception when a message arrives at the endpoint and no registered message handlers are found.