Fix bug in the `diagrams` tool when accessing Prolog module properties using SICStus Prolog as the backend compiler