Bug 49940: Apply patch to avoid XmlValueDisconnectedException when saving a file twice and enable reproducing unit test