[NTalk] Fix guaranteed NPE
[NCore] Fix generating incorrect file path