[Mac] fix crash when tree view SelectedRows count is zero
Merge pull request #227 from dlech/fix_treeview_crash

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