This assertion is duplicated elsewhere, and could also be simplified. (e.g. You're checking for the message twice.)