Initialize endpointName with Optional.absent() in ThriftFactory

This fixes broken ThriftFactoryTest too.