Fix issue where reader produces namespaces with empty names