Removed unnecessary item.setContainer(null) - already performed in
item.remove()