changed handling of destroy/activate for OWSMetadata in XMLEditor handling