Fixed issue where empty namespaces array was being produced.