Hmm, maybe this line.  You should move this to after the last call to `ensureValidMessage`.  I'm just guessing.