Improved the support of network error

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)
Merge pull request #4 from laurentj/dev

Improved the support of network errors