Fixed incorrect handling of unfinalized block marker.
Test by creating a mention block then change cursor to the text marker before the block marker and type something.