Don't check for inlineImg twice

Bug #82059
Improve non-latin characters in inline notes

Preview commit had by mistake changes in these two files that belong here

Bug #65956