Fixed generator upgrade leaving ghost stacks (size zero) when inserting fuel, fixes #448.