FIX: Do not suggest Emoji when in open code blocks (PR #14337)

There was a check for closed code blocks (which had both opening and closing markups), but it did not work for the case when the text ends in an open code block.

GitHub