Fix java.lang.StringIndexOutOfBoundsException + Detect hyperlinks only for *.tml files