shell: Don't show a disconnected dialog while logging out

Fixes #719
I am pretty sure $(null).on(...) does nothing, so we don't need the check here.  Same goes for $(watched_client).off(...) above.