ISSUE-16 Fix problem when deleting a discussion when filters with conten...

...t and headings are enabled