If cavity is not connected Save would fail

with NPE when writing WF.