added checks for handling non existing map keys in client near cache implementation