SessionTreeWidget::onCurrentItemChanged(): add missing null ptr check