vdex: add checks in the event of file corruption. am: a74a707149 am: c914b1aa17

Original change: https://android-review.googlesource.com/c/platform/art/+/1823312

Change-Id: I2a37b2d792e33cbad3a95f390fe7bca67279aee6