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.

Test: atest CtsHiddenApiBlacklistApi28TestCases
Test: atest CtsHiddenApiKillswitchDebugClassTestCases:android.signature.cts.api.DebugClassKillswitchTest
Bug: 202684106
Change-Id: I5ac0f67f498de96788febafbc3195372a6d049f2
(cherry picked from commit f8cc0d6820e0e0bca6d3ff9149f129176e2267fb)
1 file changed