[Issue 10309] New: Handle potential null pointers returned by ber_strdup