get_object_as_xml: enable no_namespace silently when the incoming object definition does not have a namespace.