Fixing hang when typings aren't found.

If res.on('data') isn't called, node.js blocks and the process doesn't exit. We
need to call it even when a typings definition does not exist.

Also fixed truncation of typing definitions when it's big.