Let result be an empty .If selector is null, gather stats for the whole connection, add them to result, return result, and abort these steps.