Fix cosmetic issues

Fixes some cosmetic issues when building the postatus errors email.