Fix reading from stdin to handle when chunk is null

Looks like `process.stdin.read()` will return `null` if there is no data available (http://nodejs.org/api/stream.html#stream_readable_read_size) and the call to `render` will fail if `null` is passed in.