Return null if key2 is set but does not exist.