Fix nextTag for end of document

Change Parser.pop() so doesn't reset end tag we're currently trying to
match in nextTag. Change END_DOCUMENT enum so no longer same as END tag
so callers can tell them apart.

Bug:
Change-Id: Ie5bd3e6703e75ce9d8bee888e6e3fb9a124434f3
2 files changed