Fix crash when no email addresses are configured