avoid key error when looking up HTTP_USER_AGENT