Fixed bug where the autolink plugin would produce an index out of range exception for some very specific HTML.