Fix snapshot #0 handling for traces with a stack check on entry.
Merge branch 'master' into v2.1
Merge branch 'v2.1' into v2.1-agentzh