scanner: Only warn about signal parameters if there are some

We don't want to emit a warning if there are actually no parameters.