Fix bug 963804: Add error emailing to management command.