handling empty user_agent