Fix bug where deleted instance was not removed from a party, which caused a NullPointerException further down the line.