That's really bad design then.
Any design worth its salt should incorporate a thermal soft-fuse at the heater element that cuts power off if the printhead ever goes above the maximum temperature that any filament can handle.
Pure software interlocks are not sufficient. One might think people would have learned a lesson, nearly half a decade after Therac-25.