JBIDE-16513 NPE when defining Visual Template