Check that user-agent header exists before retrieving it
There is now one more assertion
Merge pull request #388 from p/agent-test

Check that user-agent header exists before retrieving it