handle case were there's no parsing error, but there's an unclosed
<% template %> tag