Change findPrefix to return null if no namespace prefix found