GH-96754: Check whether the interpreter frame is complete before creating frame object. (GH-96776) (#96787)

(cherry picked from commit 12c5f328d2479ac3432df5e266adc4e59adeabfe)

Co-authored-by: Mark Shannon <mark@hotpy.org>

Co-authored-by: Mark Shannon <mark@hotpy.org>
4 files changed