MDL-42054 throw error if developer tries to send emails in unit tests without redirection