Fix undefined variable causing swap notification emails to fail.