std.json: throw exception if a key does not exist

An exception is much better than a segfault.