[cppcheck] Fix null dereference in SelectWnd::currentChanged