Yes, the email falils to be sent if the template has error in it.
I have this in the beginning:
<body header="nlheader" header-height="6%" footer="nlfooter" footer-height="75pt" padding="0.5in 0.5in 0.5in 0.5in" size="A4">
<#if record.orderstatus = "A" || record.orderstatus = "C" >
</body>
</pdf>
#else
And these are my last three lines:
</#if>
</body>
</pdf>