Fix the message of IllegalStateException when pi.equals(TemplateParser.EXTENSIONS_PI)