Fix checking for errors when a page is loaded.

Because of the error page, we got loadFinished with ok=True even with errors.

Fixes #84.