fix for folders not containing any files but containing other folders

When a folder doesn't contain any files, remapify throws an error as aliasWithNoExt is null.
Folders can be empty of files but can contains other folders (which won't be empty), especially if you're working on a package or library.