Don't break if user_agent is nil for some reason