Handle base IRI properly when processing remote contexts