Prevented null ref on folder scan, if no files were found on scan