Fixed possible NPE in case of hash collisions in the Memoization Cache