Ntlm target name fix

Fixes the segfault if TargetName is not set