[PATCH v2 5/6] mmdevapi/tests: Simplify handling of failure to get a capture endpoint.