On production of such certificate the Treasurer of Victoria shall, after deducting from the amount so certified by the commissioner the expenses incurred in carrying into execution this Part and ascertained as aforesaid, pay to the party entitled thereto the amount named in such certificate or if the same is for loss or injury on the part of the Crown shall deduct and retain the same.