doc tweaks
avoid InternalError when invalid document root is sent to DictDocument family of protocols