Improved the support of network errors

In case of network error (unknown domain name for example):
- loadFinished should be called only one time
- "fail" should be given only on network error, not on http error (phantomjs parity)