Handle archive failure in single link JS.

Fixes #473