Update navigate.c

check url pointer is null