If parent form doesn't exist, use the document root.  Fixes #13.