Don't crash when importing a 404

Now we have a test for this case.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/682913002