fix appendArrayItems and appendArrayItemsIfNotExist

delete undefined columns from object