Fix crash when custom word contains empty word string.