[cache] Fixes nil issue in memcached store tests