Properly identify channel-specific rules in Recording Rules.

This was broken when channel rules were converted to all rules using
the this channel filter.  Based on a patch from lomion@aon.at.

Refs #12267

(cherry picked from commit a397b94ffb5cf201aef4fdd9ccd2b28780713bed)