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:

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