Whenever a justice shall be satisfied that a jury, sworn in any civil cause before him or her, having been out a reasonable time, cannot agree on their verdict, he or she may discharge them, and issue a new venire, unless the parties consent that the justice may render judgment on the evidence before him or her, or upon such other evidence as they may produce.