Fix sum over empty ranges not setting the target to zero