Fix crash when using DHT.

t.M needs to be populated before we can refer to it.
Merge pull request #52 from nictuku/master

Fix crash when using DHT.