Whenever it shall appear in the final account of an executor or administrator that the estate of a minor or person non compos mentis in his or her hands does not exceed five thousand dollars ($5,000), the sum may be applied or disposed of in such manner as the probate court shall deem for the advantage of the minor or person non compos mentis.