fixed a segmentation fault bug of user_agent module when there's no User-Agent header existed in a request.