Fix typo resulting in empty calls to modError::addError() for all sent emails

Typo introduced in commit a1ae0917b08b64b8bf735146366d52fe0933dcf4
Merge remote-tracking branch 'upstream/pr/11936' into pr/11936

* upstream/pr/11936:
  Fix typo resulting in empty calls to modError::addError() for all sent emails