[addons] fix null ptr dereference in GetTranslatedString