chore($cache): do not add entry to LRU hash when value is undefined

When adding entries to the cache and the `value` is `undefined`, no entry should be added to the `lruHash`

There is no way to create a unit test as we do not expose these inner structures