If an action or proceeding based upon, or connected with, a demand warrant is commenced within four years after the date of the warrant, or within four years after the maturity of a time warrant, and final judgment is in favor of the holder or owner thereof, the warrant shall be paid the same as if it had been paid before the expiration of four years from the date of the warrant.