Fix bug in the `diagrams` tool when checking if a predicate is public or exported that could result in local predicates being misclassified as external predicates when generating entity predicate cross-referencing diagrams