XML Parser: Fix how validation is detected

Previously it was ignoring the return value, so on some
implementations like Android, it was trying to incorrectly
use validation even though it wasn't actually supported.

Bug: 27552463
Change-Id: I5872f026e4eef957a0a91c8598044152de71404a
1 file changed