[Mac] fix crash when tree view SelectedRows count is zero

This is really a workaround for an apparent MonoMac bug. The foreach steps into the iteration when Table.SelectedRowCount == 0, so you get a null reference exception when trying to access the Position property.