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

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

Change-Id: Idf8b2137c4d6861ff31a5335a9c0f8809762cb22