do not push on undefined
added test for #1
Merge pull request #1 from mafintosh/do-not-end-on-undefined

do not push on undefined no not close the stream