Error recreation.
Fixes WFE-1006.
Update SPARQL queries so that they don't use the default graph.
Set an empty path even when there is no context path.
Fix WFE-1041, avoid NPE when no serialization metadata are available for
an internal resource.