Maryland voters received replacement mail-in ballots after a vendor error led some people to receive a ballot for the wrong party’s primary.