Check for the numeric "all" value (-1) for the rule protocol

Fixes #7832