s4-repl: Use NULL for pointer test when checking for ldb_msg_new() failure