Make has_next_partial_string() more precise

Note that next_partial_string() returns the empty partial string
when PartialStringIterator::m_vector is empty.