checkParamName: fixup throw on declared but unexistent params

Fixes #39
Closes #40