Fix multipal participant registration with confirmation email and tax enabled

When register multipal participants for a event, if the confirmation email of the event, tax and invoice are enabled, this will cause a syntax error after processing the registration.

This issue is fixed here.