vdex: add checks in the event of file corruption.

It's unclear yet why the vdex files are being corrupted. But system
server, which is reading these vdex files should be robust to any vdex
corruption.

Bug: 199309980
Bug: 199395272
Test: test.py
Merged-In: Ia85ab8b23a0be4069cfa058a86fdf561f1ceb432
(cherry picked from commit 8f873b7a815729dac78818f359cf857484022b25)
Change-Id: I96279890afb66ba1bc8d0e2ee47f98aa395360fe
3 files changed