Take care of some error conditions while processing QWebElement collection