Don't crash on hover over empty-tree TreeView. Fixes #469.