Fixed NPE in NamespaceBuilder when no sources are present