Update GoTemplatesFactory.java

Fix https://github.com/mtoader/google-go-lang-idea-plugin/issues/227