Fixed "cannot read from closed stream" error.

We have to determine latency (read the first byte) before potentially
serializing/consuming/toString the entity.
Merge pull request #19 from SmartBear/web-runner-read-from-closed-stream-bug

Fixed "cannot read from closed stream" error.