Fixed "Undefined index: connection"

Ran accross it while executing the tests on my Windows workstation
Merge pull request #14 from ravage84/patch-1

Fixed "Undefined index: connection"