issue #798 prevent pipeline editing while running + defensive coding if it happens anyway.