#630 - fixing error on limiting edit visit dates by voided encounters