Fix ThroughputRule broken by #675
Created by: davemevans
My recent changes to HTTPMetrics (#675) broke ThroughputRule if the last request resulted in a non-2xx response code since no trace would be appended. There was no test of trace since it was (correctly) always assumed to be there, but this now causes an unhandled exception.
Traces appended to these requests would almost certainly be meaningless in terms of throughput measurement so fix is to ignore requests which do not have a trace.