Always check for an exception after a class lookup. am: 7425a437de

Original change: https://googleplex-android-review.googlesource.com/c/platform/art/+/15898695

Change-Id: Iff40e9c4fdef0a3418daa95ac4bf3bf03dc94075