Fixed null string check in clientThread