Made __getitem__() raise a KeyError as expected