[BZ-1075631] avoid NPE when calling KnowledgeBuilderFactory.newKnowledgeBuilder(null)