Should the delay occasioned by the giving of the notice provided for in section 25-1082 be hazardous to the rights of any party, the court or judge may, by order, direct the sheriff of the county in which such action is pending to take temporary possession of the property, and shall appoint an early day for the hearing of the application, and if at such hearing the application is refused, restitution shall be made of the property to the party from whom the same was taken.