Fixed issue where existing XML config file would get overwritten if XML was not well-formed

There is an issue in the XmlFileConfigurationProvider that would overwrite an existing XML file if the XML contents were not well-formed. 

The fix simply checks if the file exists, and if it does, rather than overwrite it (thereby throwing away any config that was stored in it), it throws an exception.