null check for route/url on navigate