html_safe build fails html in report section of email