ISSUE-16 Fix problem when deleting a discussion when filters with content and headings are enabled