I would go the second way, but I'm not the one who makes the final decision :)
I think you should replicate the setter's behavior - throwing an exception if the key does not exist.