Fix query log fetching in exception renderer.