Redirect to home page on a missing document. Fixes #561