Prevent incorrect redirects stopping logging of database errors

if you have a database error on a non-404ing page that matches an seo redirect, that error does not get logged, instead seo takes over and redirects you as if a 404 happened.