Fix crash when trying to iterate over words in an inline text box of length zero.

BUG=373885

Review URL: https://codereview.chromium.org/542553002

git-svn-id: svn://svn.chromium.org/blink/trunk@181649 bbb929c8-8fbe-4397-9dbb-9b2b20218538