Add check for null gridItem.asset before adding to selection collection.