PCM energy storage during defective thermal cycling