Ensure gateways get loaded prior to emailing out Closes #4577