Add another DCHECK that an exception isn't pending.

The code assumes there should not be any - it's unclear if that's the
case, but add a DCHECK to diagnose.

Test: test.py
Bug: 73760543
Change-Id: If9c89261f1f1dfc4d4966ea89474d8a2ee224452
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 86ff666..8f8f4fd 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -8779,6 +8779,8 @@
       // We normaly should not end up here. However the verifier currently doesn't guarantee
       // the invariant of having the klass in the class table. b/73760543
       klass = ResolveType(method_id.class_idx_, dex_cache, class_loader);
+      DCHECK(!Thread::Current()->IsExceptionPending())
+          << Thread::Current()->GetException()->Dump();
     }
   } else {
     // The method was not in the DexCache, resolve the declaring class.