Workaround for invalid ParserAfterParse hook call

Bug: 71772
Change-Id: I70a9542a0f2c25139e4d7d464c93228f27157974
Merge "Workaround for invalid ParserAfterParse hook call"