Revert^2 "Make opaque-jni-ids:swapable more efficient"

This reverts commit 42c52f53b3c85b5e3c984bca8eaec2e03893dd2e.
This un-reverts commit 4e7dd70e3ee7a25089bed791df8865966cb4b837.

We were missing some null-checks that caused a null-pointer
dereference to occur if one tried to get a jmethodID for an obsolete
method when we start with index-ids.

Reason for revert: Fixes issue causing failure in art-jit config.
Test: Manual
Test: count-fields.py
Bug: 134162467

Change-Id: Ie36c7a4edb70f96655b3b85e5f5eaa6bf47f5cc7
11 files changed