Ntlm target name fix

Fixes segfault if no targetname is set