[NTG-context] Check for parity of pair tags on source file to be closed