fix(zone): clear stack trace frames in less error prone way