Bugfix: handle invalid MessageIDs

Incoming MessageIDs are almost always formatted as <id>@<host>, but occasionally not.