Fix 32dde55006f03338d68f6e8d0677038a28cb053c

Clicking on a document's filename in the popup window didn't work in the
Emails module.