Error when sending e-mail (invoice and customer statement)

Fixed in the latest version (25.10.6.2898)