fix bug 972545 - prevent deleting parents

Temporary fix for [bug 972545](https://bugzil.la/972545) until we can do the more thorough fix for [bug 972541](https://bugzil.la/972541)