router: handle not found case properly