channel.c: Fix invalid reference in conditionaled out code.