Fix CardListView crash when using headers in a ListView.