fix empty path handling

small but important check. allows indexing all my files. @icewind1991 @DeepDiver1975