Fix tag text object when starting from before nested tag in outer tag