Whenever any claim is made or petition filed by the representative of an estate or other person, under the provisions of this chapter, or under any other provision of law, to recover money or other property deposited in the State Treasury or held by the State or any officer thereof to the credit, or in the name, of any account in the Unclaimed Property Fund, no recovery will be allowed unless it affirmatively appears that there are heirs or legatees who will receive such money or other property or creditors of the deceased owner of the claim whose claims are valid and are not barred, and whose claims were in existence prior to the death of such deceased owner of the claim. Where only creditors exist, and there are no heirs or legatees, said claims shall be allowed only to the extent necessary to pay such claims and the reasonable costs of administration of the estate, including court costs, administrator’s fees and attorney’s fees. This section shall apply to all claims which are pending at the time that this section goes into effect as well as to claims arising hereafter.