Fix bug with unclosed tag when no files in the list.