TagProcessing: ensure that fosterParent gets applied before closeParent
Synced from master
Synced from master