CMS-4106 Exception in TreeGrid when saving content second time

Added `TreeGrid.getDataId()` method.