Make getMessageName throw on unknown message.