Changed logic to get the cell from the datasource, instead of the collectionView

Fixes an issue in which the returned cell could be nil