fixing TextMD markupBasis NPE