Issue #12: do not send email if redirect is null