Added check for remaining references to a namespace URI before removing it from the ns_idx.properties file