Fix minor location parser bug.

Make sure the entire input is parsed.