add-remove-shell: fix crash when shell is already added