Files at the root of a linked folder should not cause a crash

Change-Id: I84146bb4618e2ac14a76c518f8511c3e63318ccf