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