Fixed a bug with template syntax errors not handled properly.

--HG--
branch : trunk
2 files changed