bpo-38908: Fix issue when non runtime_protocol failed to raise TypeError (GH-26067)

(cherry picked from commit c40486a32d7e37b01ead94e701d69847f5b60e30)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
3 files changed