Incorrect type comparison for the MessageId, clean up the error text as well.