Let us handle cases where parent is null. Sanity check for child
Merge pull request #12 from mono/bug3700

Let us handle cases where parent is null. Sanity check for child