Properly handle deletion of tail nodes in list.