Fix error when snippet_files is empty