Fixes U4-5077 Umbraco 7.2 Alpha - doc types with compositions get moved in doc type tree

Return 0 if parent is the root
Merge pull request #506 from sitereactor/7.2.0-compositions-fix

Fixes U4-5077 doc types with compositions