correctly handle non existing map keys in client near cache implementation