Fixed a crash on a bad route

If posts were not found on the /blog/post/:name route, the app would
crash. It now redirects to the 404 page instead.