Because the class is not defined in the save file. This is what people mean when they say that there script will corrupt old save files. You need to erase them and start a new game with the script in it. It would be a good idea for this note to be added to the script so that others are aware.