issue #22072: Fix problem with email handling on workflow.
Merge pull request #1117 from jrogelstad/22072

issue #22072: Fix problem with email handling on workflow.