I think if an attribute is voided, then you shouldn't match against it, in OpenMRS voided is the same as deleted from the user's stand point, we just don't want to purge it from the DB for audit/history reasons