fix for crash in filewatcher when thumbnail is removed and state deleted