HtmlBrowser loadResource event loop could cause segfault

If HtmlBrowser was updated multiple times from event loop loadResource()
could cause segfault.