EXOGTN-1601: [Edit-Inplace] ClassCastException when saving after switching layout