Fixed bug when no files were inputted

If no files were inputted to the stream, it would fail while closing the
concat stream.

Closes #46