Fixed behavior of graphClassSelectionDialog when no node is selected