Before a court issues or modifies an order for the support of a child, the court shall determine whether any of the parties to the proceeding are receiving or have ever received public assistance. If the court determines that any of those parties are receiving or have ever received public assistance, the court shall not waive any arrearages in the payment of child support until after it has provided the Division of Welfare and Supportive Services of the Department of Health and Human Services with notice and an opportunity to be heard regarding the matter.