Fix #872: index function should handle deleted charts correctly
Attach a file by drag & drop or click to upload