PJPROJECT logging: Fix detection of max supported log level.