fix infinite loop
What does this MR do?
fix text_utility.js#truncatePathMiddleToLength infinite loop
when the param of truncatePathMiddleToLength text
is like 'aaa/aaa/aaa/aaa/aaa/aa/aaa/aaa/aaaa/aaaa/aaa/aaa/aaa/aaa/aaa/aaa/aaa/aa'
, it would cause a infinite loop.