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