Fix _processExpandThread in empty thread