Fix #1791 by only sending confirmation email if ConfirmEmailAddresses is true

Fixes #1791