Using GetTopItem() was wrong, we actually need to use the invalid item, which corresponds to the "virtual root" of wxDataViewTreeStore.