Document::add_file_to_archive(): Check the stat() return value.

Found by Coverity Scan.