return null if route is undefined under 404 error.