Fix edgecase in v8 CPU profiler