log_query(): Ensure the earliest trace *has* a line number.