parser: Start using input depth for entity boundary check Now that we make sure that PEs starting markup won't be popped implicitly, it's enough to check that no new entities are on the stack when checking boundaries.