Fix crash when loading an invalid save file.