Cache: fix for NPE during removeEldestEntry