Fix warning with closure in trace

A closure in a trace doesn't have a file index, now no warning no more