fix bug 972545 - prevent deleting parents

smaller hack
Merge pull request #2022 from groovecoder/prevent-deleting-parents-972545

fix bug 972545 - prevent deleting parents