InlineSchemaTree: replace one use of .getFragment()

The test was .getFragment().isEmpty(). This is basically the same as testing
whether the ref is absolute.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>