client: Fix possible division by zero in S_PaintChannelFrom16*