zserv: [pimd] fix - avoid dereferencing a NULL pointer

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Tested-by: NetDEF CI System <cisystem@netdef.org>
diff --git a/zebra/zserv.c b/zebra/zserv.c
index e624ef2..6412f8d 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -626,7 +626,8 @@
   stream_reset (s);
 
   /* Fill in result. */
-  zserv_create_header (s, ZEBRA_IPV4_NEXTHOP_LOOKUP_MRIB, rib->vrf_id);
+  zserv_create_header (s, ZEBRA_IPV4_NEXTHOP_LOOKUP_MRIB, 
+		       rib ? rib->vrf_id : VRF_DEFAULT);
   stream_put_in_addr (s, &addr);
 
   if (rib)