- Fix #913: Message ID has to be set when called from listener

Message-id is marked as  "sending" but after the try the message-id is (-1) because of the initial value. So the message is still marked as "sending" and not "outbox".