Fix test when the type of the field cannot be resolved.

We should not return true/false, but instead throw an exception so that
the test just discard this field.

(cherry picked from commit f8cc0d6820e0e0bca6d3ff9149f129176e2267fb)

Test: atest CtsHiddenApiBlacklistApi28TestCases
Test: atest CtsHiddenApiKillswitchDebugClassTestCases:android.signature.cts.api.DebugClassKillswitchTest
Bug: 202684106
Merged-In: I5ac0f67f498de96788febafbc3195372a6d049f2
Change-Id: Iaabbd5e8199ee447c0560a7127125900fa281e78
1 file changed