Fix crash when deleting the last file from local storage.