Bug 880395 - Check threadId for sending messages before adding them to the current thread.