Fixes NullReferenceException if you can somehow DoubleClick without selecting an item first in the GUI's treeview