LPS-39361 Fix bug removing document previews