XWIKI-10510: Add ability to send emails from a Template document containing a XWiki.Mail xobject
* Fixed bug