Fix crash with createDocumentSeo on SeoManager

* Fix issue with Document Seo create from the SeoManager
* Add a missing test for this case