throw exception when second argument of Enum.take_every/2 is negative