TYRUS-381: addMessageHandler(Class, MessageHandler.Whole<Class>) produce...

...d invalid error message.

(when user was trying to register message handler without appropriate decoder).