Fix another "empty object is truthy" bug.
Stream is prematurely ending and no end event fired.
Merge pull request #22 from thewillhuang/hiroshi

Fix another "empty object is truthy" bug.