If the defendant in a replevin suit shall at any time deem any bond taken to be insufficient, such defendant may, upon filing a motion in the court where the suit is pending, obtain a hearing to determine the sufficiency of such bond. The court shall, after hearing the evidence upon such motion determine the sufficiency or insufficiency of the bond. If the bond given by the plaintiff be adjudged insufficient, the plaintiff shall be required to give a new and sufficient bond, or restore the property to the defendant within the time limited by the court; and, in default thereof, the defendant shall be entitled to proceed and enter judgment as in case the plaintiff had nonsuited or otherwise made default.