Fix NullPointerException when no match is found by CacheManager.search()