[stubtest] Fix crash on instances with redefined __class__
#20926
+47
−0
__class__
#20926