Fix "(during SMTP connection from NULL)" bug.