ECMS-4773 Wrong message when delete document webcontent with references - Change the way to check Relation