Fixed #271: MDict: A mechanism to clean-up invalid HTML cards

Thanks to Abs62 for the hint :)