Fix incorrect logic for selecting which nodes to ignore comment migration for.