matcher: correctly check for digits in parameter node

It would not enter the if when int(value) == 0, and would
then fail on referencing the undefined kind variable.