Fix reading from stdin to handle when chunk is null
Merge pull request #59 from joshma/master

Fix reading from stdin to handle when chunk is null. Fixes #59.