Fixed so undefined gets ignored in items collections