Fix bug with 404 pages.

Program wasn't skipping 404 and like links and was trying to download
them repeatedly.