Bug #12033: better sanity checking when Message-ID is empty (which can never happen for a valid message)
Fix detecting logic error from authentication error