Fix a NPE when clicking on email links

See #145