Fix JS error when there are no filelists on the page