Add error checking

Error checking added for WeightedPercentage.Percentage and
MatchProcessor