Minor sanity checks when checking for and processing a new message.