fixed problem with scanning dir with no media files