Fix a 'request' assertion error in e-mails.

E-mails don't have a 'request' parameter, and so this was generating a
traceback e-mail. Unfortunately, this ended up inside the review e-mails
people saw.

Now the request is optional, rather than required. Confirmed that this
fixes e-mails.
Merge branch 'release-1.7.x'