[TREELIST] Fix treelist_do_select() for NULL.

(Patch by Jeff Armstrong)
[TREELIST] Fix treelist_delete_item() to send ...

... proper notification when changing selection.
[TREELIST] Reset ->scrolled_item whenever it is deleted or collapsed.

(Emerged from patch by Jeff Armstrong.)