TYRUS-381: addMessageHandler(Class, MessageHandler.Whole<Class>) produced invalid error message.

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