[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.