Check for XML before overwriting

https://github.com/ahwayakchih/conditionalizer/issues/8#issuecomment-25923310