Simplify ImageWriter::IsInBootImage.

Make the code a bit faster (lost in noise on host) and
smaller.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Ica9138bd51cb7f24b1f35e3a99dbb83551e7d9a2
2 files changed