Fix a bug in image generation due to default conflict methods.

There were inconsistencies in HasCodeItem/IsInvokable which lead to the
default conflict ArtMethod pointing to arbitrary data.

Test: 845-data-image
Bug: 290519059
(cherry picked from https://android-review.googlesource.com/q/commit:e5a09b184db65ab5802824e0102f7a42f3d9b184)
Merged-In: I980c3fdac0ebf29474b166d0acfe27eef1d566c8
Change-Id: I980c3fdac0ebf29474b166d0acfe27eef1d566c8
7 files changed