Support ordering for root level items

When sorting root level items or moving item up to the root level `add_item` is called on nil.