server: handle pcre2 now returning -1 for "no match"