XWiki-6456:sendMailFromTemplate should check rights on the document which is being used as a template