Fixed child namespaces would not be generated if parent namespace had no objects.