Avoid exception on @context with default @language and unmapped key

Fix NullPointerException occurring when compacting a document using a `@context` with a default `@language` that does not explicitly map a key that appears in the document (see included test case).

I hope I got the test integration right.