Fixed select/check behavior in SelectConnectedElementsDialog.