Update TemplatePreProcessor.java

修改流没有关闭bug
Merge pull request #3 from youling632/patch-2

Update TemplatePreProcessor.java