Issue 1784: Catch template parsing errors and show useful message.
Merge pull request #69 from hssm/Issue1784

Issue 1784: Catch template parsing errors and show useful message.