Flow tab error badge left behind when erroneous node deleted

Related to but not the same as https://discourse.nodered.org/t/error-badges-in-editor-explorer/102000

If a flow has a node with an error, the red triangle badge is, very usefully, also shown on the explorer sidebar and the flow tab:

Fix the error and the badge is correctly removed from the flow tab and explorer.
But if instead you delete the erroneous node the badge is not removed:

A deploy doesn't fix it but reloading the page does.

Already fixed for the next maintenance release - Fix error badge state when deleting a node by GogoVega · Pull Request #6050 · node-red/node-red · GitHub