[Misc] Reformat + removed unused import/code
[Misc] Reformat
XWiki-6456: Sending a mail from a Template should check rights on the document which is being used as a template