Fixed bug where the wordcount plugin would be very slow some HTML where to much backtracking occured.