clicking on corrupted item causes DT to crash
The import process managed to import some corrupted images (#8607) into the DB and displayed them as gray slides with no thumbnail. Some of the files on disk had corrupted information, others were 0kb.
When double-clicking on one to open it, darktable crashed.
Steps to reproduce:
1. import corrupt image
2. double-click on image in lighttable