Fix a bug in wt-monitor-macos.c