Fix broken DCHECK

Dex cache may now contain references into boot image. Only check
classes that are actually in the application image.

Bug: 28295348

(cherry picked from commit 55accd5725442026c8c32dc773b1cd12a65f90f6)

Change-Id: Ic585e444f60734768a5499ccaf14d68bf3685d50
1 file changed