Add not-found middleware to system handler