Ensure we have a messageid.

Prevents fatal errors in IMP's maillog handling when and subsequent
Android client crashes.