fixes a bug that was causing errors raised after the body was yield to also get yielded instead of raised