If editing a forest fails, mark it as broken (#27955)