Connection: fix property reference
Connection: add agent-related debug output and improve empty agent error