The appeal shall not prevent the collection of the assessments, nor stay the collection in any way, if the district or any petitioner for the district executes a bond, with good security, payable to the appellant, and conditioned to hold the appellant harmless against loss and to abide by and perform the judgment of the court, if the appeal is successfully prosecuted.