conn.py: make sure to not login without credentials

The tests failed because a login was attempted although there were no
credentials. I guess there were empty credentials because of my changes to the
credentials setting in the SerialConneciton constructor.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>