Validate whether peer gss name is non-null before duplicating it