[Items] Fix LUA error caused by trying to end an item that has already ended.