Throw errors if virtual tree traversal finds an unmatched ko closing comment