Return cookie factory instance if name is null.