Fix a utext length bug for M49 branch

This is to cherry-pick a fix for
http://bugs.icu-project.org/trac/ticket/12130

BUG=575206
TEST=See comment 51 in the bug
R=mmoroz@chromium.org

Review URL: https://codereview.chromium.org/1659693002 .
5 files changed