Fix: crash when deleting a file is not selected.