HMRC data blunder affects up to 50,000