Allow setting the router to NULL.