Fix regression and properly stop backtraces at main function again.
Fix regression and properly stop backtraces at main function again.

stormspirit/heaptrack,muojp/heaptrack,stormspirit/heaptrack,muojp/heaptrack,stormspirit/heaptrack,muojp/heaptrack,muojp/heaptrack,muojp/heaptrack