use root when reference URI is empty fixes #1
Merge pull request #2 from benoist/bug/1

use root when reference URI is empty fixes #1