Always check for an exception after a class lookup.

This means we need to stop the lookup, as an exception is pending.

Test: 831-unverified-bcp
Bug: 195766785
Merged-In: I8aa65f6bbaae83eff0be7ca5d82e0c0a548b5b60
(cherry picked from commit 36d182089a4ced3603c7cdcb61b2d92a5a76a471)
Change-Id: I3e414f75e7081eb93b8cb5af89859d25492edf10
8 files changed