Attempt to workaround problem reported about empty plc.xml after unrelated crash. Now, if etree model is corrupted in a way tostring() would generate an empty string, exception prevents saving.
#State Text Reference;;;;;;;
#Reference Number;Text 1;Text 2;Text 3;Text 4;Text 5;...;Text n