Fix crash on empty filelists.