Fix for email transports

/to @bajtos  or @ritch 
/cc @STRML

This PRs addresses an issue commented by @STRML in https://github.com/strongloop/loopback/pull/375/files#r15329621