By the time it happens, it is generally too late to shut off the charging circuit -- it helps and it happens but the battery destruction is already underway. The question next is whether it will catch fire or simply 'swell up'. At this point it's mostly up to luck, the available fire-prevention mechanisms are stronger battery enclosures, which would be heavy, bulky and expensive -- exactly the things most consumers do not want and would vote against with their money, reducing the profits of the company innovating in this direction.
Another way to prevent fires would be attempting to detect dendrite growth by the changes in observable battery state (capacity, amperage, etc). This is hard, expensive and will likely give a lot of false alarms requiring warranty replacement, once again hitting the would-be innovator in their pockets.