mace: Make sure that the channel count is set to a valid value