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`