Fix typo/incorrect check leading to crash in talloc_strdup