Fix several annoyances

Fix docker ps empty output.
Fix ability to join network using container short ID.
Fix crash when joining non-existing network.