Fix MailerPreview broken tests

Backport #14395 into 4-1-stable.