Fix to not crash when input files are empty strings