toEmail bugfix

fixes [issue #426](https://github.com/nytlabs/streamtools/issues/426)