Recommend checking item.stack_size type for == 'number' in data-final-fixes:7 as some things cause it to throw with a string vs number comparison as it's technically valid for Factorio to have stack_size as a string instead of a number...
I just modified my local copy to be [[[if (type(item.stack_size) == 'number' and item.stack_size > 1) then]]] and there's no issue (though you could also parse to number and then compare)