Cache.get(key, type) should also work in case of null value found in cache

Issue: SPR-11567