Fix printing of stack traces from crashes

Fix use of incorrect var name when getting the crashed thread ID
for a crash.