_context->popFrame() could returns nullptr stage, we should wrap it with stageOrLimitCoScan in the right place