Preventing an endless loop while fetching site infos

There is the possibility that a page is parsed endlessly. This change should prevent it.