fixes bug 873619 - Emails are sent to inactive users.