fix segfault in dhtget when ses is NULL (http://pastebin.com/rcJQm48W)