Fixed Document::getRootPath (fixed #2)