[DF-1172] Fix issue when tilemask editing results disappered after turning tilemask editor off