Fix NullPointerException in replaceText when empty

Bug: 17933233
Change-Id: Ie64097f8f314eeb7ef9cdf3a874d416995f8ade8
1 file changed