XWIKI-10605 : Add internationalization support to send emails from a Template
* Added back exception that were removed for some unknown reason ;)
* Fix checkstyle
* Improved some error messages