Allow for no user agent (in tests)