Fixed a bug with handling less items returned from cache than requested (cache miss interpretation)