Fixing the tags deletion when a node is deleted from the system.