Handle another case of exceptions of type 'Error' when accessing members through JNI.

This got missed in
https://googleplex-android-review.googlesource.com/c/platform/cts/+/16564904

This is cherry-pick of ag/16602503.

Test: CtsHiddenApiKillswitchDebugClassTestCases
Test: run cts --module CtsHiddenApiKillswitchDebugClassTestCases
Test: run cts --module CtsHiddenApiKillswitchSdkListTestCases
Test: run cts --module CtsHiddenApiKillswitchWildcardTestCases
Bug: 213899896
Bug: 286785698
Bug: 312395530
Change-Id: I56ef8d1cc5480814b5514d961d1a86f8d452276f
Merged-In: I56ef8d1cc5480814b5514d961d1a86f8d452276f
(cherry picked from commit c81be00a2964cf1d580e9c29543447249d6f35a8)
(cherry picked from commit 85c0f5b6aa627ae950f3c364cf6abc40f83a2045)
1 file changed