Fix bug in node map generation

See https://github.com/json-ld/json-ld.org/issues/248