Bug fix: Invalid argument when email is not sent.