Trade Cancel fix and crash on out-of-schema item-added fix

This fixes the bot failing to close trades that have ended. Also keeps trade from breaking when an item that's not in the schema is added.