Fixed segfault when cli show ospf for not immediate routers