Call `set_discussion_id` again in DiffNote `before_validation` because the order is important See merge request !5913