Prevent 404s from raising an exception and just redirect to 404