Fixed exeption when drag and drop emtpy items.