Added assertion to check that work.Next is null as is assumed.