cleanup child interface logic

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | yes (only when having used the setParentDocument method introduced in the last RC version)
| Deprecations? | no
| Tests pass?   | travis
| Fixed tickets | -
| License       | MIT
| Doc PR        | -