Minor fix in order to show actual error rather than NPE if groovy template parsing fails