Fix segfault with dead symlinks

If a symlink pointed to a non-existing directory, the path navigation
menu would crash when attempting to free the structs

Change-Id: Icd6e7dcc711645f82c5ac014fcacd506b95a2fc2