Handle the situation we could not load the class. am: 04a1720b84 am: aa683f3e81

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

Change-Id: Ic499d139435335f7920eac012a52cba79c3a62b1