A judgment or decree against any person as the personal representative of a decedent or committee of a convict or insane person, for a debt due from such decedent, convict or insane person, may, without taking an account of the transactions of such representative or committee, be ordered to be paid out of the personal estate of such decedent, convict or insane person, in, or which shall come to, the hands of the representative or committee to be administered. When the court enters of record that, if he had prudently discharged his duty, the suit or motion would not have been brought or made, the judgment or decree, so far as it is for costs, shall be ordered to be paid out of his own estate.