Bail early for bogus ParsePositions.

Some of our tests were expecting a null return value for
ParsePosition.index == -1.

bug: 26207177
Change-Id: I013f5a2b4f8cccd7814a0c001857a99cbfbb4925
1 file changed