Fixing reset of data in redis when no data