Database fields are null/undefined

I have a database with a column type multi-reference with a dropdown list of categories. In addition, there are two columns which supposed to take the data from the first column and convert it into other types.

Searchtags column type is tags and dataf column type is text. The data from the first column is not converted properly and appears null in searchtags and undefined in dataf.

This is the code for that:

export function Recipes_beforeUpdate(item, context) {
 if(item.diet !== undefined){
 var ireegamim = item.diet.slice();
        ireegamim.forEach(myExpressions);
        item.searchtags = ireegamim;
    }
    item.dataf = item.title + " " + item.description;
 if(item.ingredients !== undefined){ 
 var inga = item.ingredients.slice();
        inga.forEach(myExpressionssrc);
 if(inga[0] !== undefined){  item.dataf = item.dataf  + " " + inga[0]; }
    }
 if(item.cuisine !== undefined){ 
 var cusi = item.cuisine.slice();
        cusi.forEach(myExpressionssrc);
 if(cusi[0] !== undefined){  item.dataf = item.dataf  + " "  + cusi[0]; }
    }
 if(item.course !== undefined){  
 var cour = item.course.slice();
        cour.forEach(myExpressionssrc);
 if(cour[0] !== undefined){  item.dataf = item.dataf  + " "  + cour[0]; }
    }
 if(item.category !== undefined){    
 var cate = item.category.slice();
        cate.forEach(myExpressionssrc);
 if(cate[0] !== undefined){  item.dataf = item.dataf  + " "  + cate[0]; }
    }
 if(item.diet !== undefined){    
 var dieaa = item.diet.slice();
        dieaa.forEach(myExpressionssrc);
 if(dieaa[0] !== undefined){ item.dataf = item.dataf  + " "  + dieaa[0]; }
    }
 return item;
}

function myExpressions(itemX, index, arr) {
    arr[index] = itemX.title;
}

function myExpressionssrc(itemX, index, arr) {
 if (index===0){arr[0] = ""}
    arr[0] = arr[0] + " " +itemX.title;
}

export function Recipes_afterQuery(item, context) {
    item.makros = item.calories + " Cals | " + item.protein + "g P | " + item.carbs + "g C | " + item.fats + "g F";
 return item;
}

The code used to work properly and it has suddenly stopped working without making any changes! My developer said that the code looks just fine and he thinks it stopped working because of changes WIX has made. Does someone knows about changes that could have caused this? Or there is a problem with the code?