As discussed, how is `pj_strlen` implemented?  The key thing is that `pjstr` might point to an invalid memory address for the string buffer itself, but only if the `slen` (string length) field is 0.  `If pj_strlen` just looks as `slen`, this fix is fine.  If it might look at the string buffer itself, I don't think this fix is right.