Fix NullPointerException at
java.util.regex.Matcher.getTextLength(Matcher.java:1234)