Handle NULs in link targets in resolved_path_exists?