agent fixes

- guard against dns server list being nil
- fixed uninitialized variable
Merge pull request #25 from pmenglund/agent_fixes

agent fixes