Avoid doing any work when unwinding stack traces with 0 or 1 frame