Fixed lookupNamespaceUri() calls, use NULL for empty prefix