REST API Visit resource returns voided encounters

When querying the visit resource on the REST API, the response contains both voided and non-voided encounters. Is there a way to only return the non-voided encounters?

This test asserts that voided encounters are not returned: https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/VisitController1_9Test.java#L231-L255

Which version of the platform and webservices module are you running?