defensive coding to stop blowing up when there's nothing in trace-elems for the cause