Ending 'empty' stream should not cause an error

- This situation can easily happen when piping a socket to the saxStream and the
  socket is disconnected before receiving any data.
- Add a simple test.