In cases where there's problems downloading the chemical component files from PDB, corrupted or empty files are still saved producing difficult to understand errors down the line (see #702). Two things to fix:
- do not store files if the download is empty or any kind of server error (404 or others)
- better error handling when the file doesn't have valid content, trying a redownload